-
- All Implemented Interfaces:
-
com.kaspersky.components.kautomator.component.common.actions.UiBaseActions,com.kaspersky.components.kautomator.component.common.assertions.UiBaseAssertions,com.kaspersky.components.kautomator.intercept.base.UiInterceptable
public class UiBaseView<T extends Object> implements UiBaseActions, UiBaseAssertions, UiInterceptable<UiObjectInteraction, UiOperation<UiObject2>, UiOperation<UiObject2>>
Base class for all UiAutomator DSL views
This base class allows create new custom view with ease. All you have to do is to extend this class, implement all necessarily additional actions/assertions interfaces and override necessary constructors
-
-
Field Summary
Fields Modifier and Type Field Description private final UiObjectInteractionDelegateview
-
Constructor Summary
Constructors Constructor Description UiBaseView(Function1<UiViewBuilder, Unit> function)Constructs view class with UiObject interaction from given UiViewBuilder UiBaseView(UiViewSelector selector)
-
Method Summary
Modifier and Type Method Description final Unitinvoke(Function1<T, Unit> function)Operator that allows usage of DSL style final UiObjectInteractionDelegategetView()-
Methods inherited from class com.kaspersky.components.kautomator.component.common.views.UiBaseView
click, doubleClick, intercept, isClickable, isDisabled, isDisplayed, isEnabled, isFocusable, isFocused, isNotClickable, isNotDisplayed, isNotFocusable, isNotFocused, isNotSelected, isSelected, longClick, reset -
Methods inherited from class com.kaspersky.components.kautomator.component.common.actions.UiBaseActions
equals, hashCode, toString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
UiBaseView
UiBaseView(Function1<UiViewBuilder, Unit> function)
Constructs view class with UiObject interaction from given UiViewBuilder- Parameters:
function- UiViewBuilder which will result in UiObjectInteraction
-
UiBaseView
UiBaseView(UiViewSelector selector)
-
-
-
-