public class EventUiElementActor extends java.lang.Object implements UiElementActor
UiElementActor
that performs actions by injecting synthesized
events.Modifier and Type | Field and Description |
---|---|
static EventUiElementActor |
INSTANCE |
Constructor and Description |
---|
EventUiElementActor() |
Modifier and Type | Method and Description |
---|---|
void |
click(UiElement uiElement)
Clicks this element.
|
void |
doubleClick(UiElement uiElement)
Double-clicks this element.
|
void |
longClick(UiElement uiElement)
Long-clicks this element.
|
void |
scroll(UiElement uiElement,
Direction.PhysicalDirection direction)
Scrolls in the given direction.
|
public static final EventUiElementActor INSTANCE
public void click(UiElement uiElement)
UiElementActor
click
in interface UiElementActor
public void longClick(UiElement uiElement)
UiElementActor
longClick
in interface UiElementActor
public void doubleClick(UiElement uiElement)
UiElementActor
doubleClick
in interface UiElementActor
public void scroll(UiElement uiElement, Direction.PhysicalDirection direction)
UiElementActor
scroll
in interface UiElementActor
direction
- specifies where the view port will move, instead of the
finger.