Package 

Class UiObjectLoaderBehaviorInterceptor

    • Method Summary

      Modifier and Type Method Description
      <T extends Any> T interceptCheck(UiObjectInteraction interaction, UiOperation<UiObject2> assertion, Function0<T> activity) Wraps the given activity invocation with the UiObject2 repeated loading.
      <T extends Any> T interceptPerform(UiObjectInteraction interaction, UiOperation<UiObject2> action, Function0<T> activity) Wraps the given activity invocation with the UiObject2 repeated loading.
      • Methods inherited from class com.kaspersky.kaspresso.interceptors.behaviorkautomator.KautomatorBehaviorInterceptor

        equals, hashCode, toString
      • Methods inherited from class com.kaspersky.kaspresso.interceptors.behaviorkautomator.impl.loader.UiObjectLoaderBehaviorInterceptor

        handleUiObjectAbsence
      • Methods inherited from class java.lang.Object

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

      • UiObjectLoaderBehaviorInterceptor

        UiObjectLoaderBehaviorInterceptor(UiTestLogger logger)
    • Method Detail

      • interceptCheck

         <T extends Any> T interceptCheck(UiObjectInteraction interaction, UiOperation<UiObject2> assertion, Function0<T> activity)

        Wraps the given activity invocation with the UiObject2 repeated loading.

        Parameters:
        interaction - the intercepted UiObjectInteraction.
        assertion - the intercepted UiObjectAssertion.
        activity - the activity to invoke.
      • interceptPerform

         <T extends Any> T interceptPerform(UiObjectInteraction interaction, UiOperation<UiObject2> action, Function0<T> activity)

        Wraps the given activity invocation with the UiObject2 repeated loading.

        Parameters:
        interaction - the intercepted UiObjectInteraction.
        action - the intercepted UiObjectAction.
        activity - the activity to invoke.