-
- All Implemented Interfaces:
-
com.kaspersky.components.kautomator.intercept.interaction.UiInteraction
public final class UiObjectInteraction implements UiInteraction<UiOperation<UiObject2>, UiOperation<UiObject2>>
Provides an interaction to work with the UiView described by selector
-
-
Field Summary
Fields Modifier and Type Field Description private UiObject2uiObject2private final UiDevicedeviceprivate final UiViewSelectorselectorprivate final Stringdescription
-
Constructor Summary
Constructors Constructor Description UiObjectInteraction(UiDevice device, UiViewSelector selector, String description)
-
Method Summary
Modifier and Type Method Description final BooleantryToFindUiObject()Tries to find UiObject2 with given selector Unitcheck(UiOperation<UiObject2> assertion)Unitperform(UiOperation<UiObject2> action)StringtoString()final UiObject2getUiObject2()final UiDevicegetDevice()final UiViewSelectorgetSelector()final StringgetDescription()final UnitsetUiObject2(UiObject2 uiObject2)-
-
Constructor Detail
-
UiObjectInteraction
UiObjectInteraction(UiDevice device, UiViewSelector selector, String description)
-
-
Method Detail
-
tryToFindUiObject
final Boolean tryToFindUiObject()
Tries to find UiObject2 with given selector
-
check
Unit check(UiOperation<UiObject2> assertion)
-
perform
Unit perform(UiOperation<UiObject2> action)
-
getUiObject2
final UiObject2 getUiObject2()
-
getDevice
final UiDevice getDevice()
-
getSelector
final UiViewSelector getSelector()
-
getDescription
final String getDescription()
-
setUiObject2
final Unit setUiObject2(UiObject2 uiObject2)
-
-
-
-