Package 

Interface KautomatorBehaviorInterceptor


  • 
    public interface KautomatorBehaviorInterceptor<Interaction extends Object, Assertion extends Object, Action extends Object>
    
                        

    The interface for all interceptors that change the default interaction in Kautomator. Often it wraps the interaction calls.

    • Method Summary

      Modifier and Type Method Description
      abstract <T extends Any> T interceptCheck(Interaction interaction, Assertion assertion, Function0<T> activity) Called to do some stuff and actually check an interaction with element.
      abstract <T extends Any> T interceptPerform(Interaction interaction, Action action, Function0<T> activity) Called to do some stuff and actually perform an interaction with element.
      • Methods inherited from class com.kaspersky.kaspresso.interceptors.behaviorkautomator.KautomatorBehaviorInterceptor

        equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • interceptCheck

         abstract <T extends Any> T interceptCheck(Interaction interaction, Assertion assertion, Function0<T> activity)

        Called to do some stuff and actually check an interaction with element.

        Parameters:
        activity - a function-wrapper of an action or an assertion to be invoked.
      • interceptPerform

         abstract <T extends Any> T interceptPerform(Interaction interaction, Action action, Function0<T> activity)

        Called to do some stuff and actually perform an interaction with element.

        Parameters:
        activity - a function-wrapper of an action or an assertion to be invoked.