Package 

Object KautomatorConfigurator

    • Method Summary

      Modifier and Type Method Description
      final Unit invoke(Function1<KautomatorConfigurator, Unit> function) Operator that allows usage of DSL style
      final Unit intercept(Function1<UiInterceptor.Configurator, Unit> configurator) Sets the interceptors for the whole UiAutomator DSL runtime.
      final Unit reset() Removes the interceptors from the UiAutomator DSL runtime.
      • Methods inherited from class com.kaspersky.components.kautomator.KautomatorConfigurator

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

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

      • invoke

         final Unit invoke(Function1<KautomatorConfigurator, Unit> function)

        Operator that allows usage of DSL style

        Parameters:
        function - tail lambda with receiver which is your UiAutomator DSL runtime
      • intercept

         final Unit intercept(Function1<UiInterceptor.Configurator, Unit> configurator)

        Sets the interceptors for the whole UiAutomator DSL runtime. Interceptors will be invoked on all of the interactions with the UiView instances.

        Parameters:
        configurator - Configuration of the interceptors
      • reset

         final Unit reset()

        Removes the interceptors from the UiAutomator DSL runtime.