public interface TouchScreen
| Modifier and Type | Method and Description |
|---|---|
void |
doubleTap(org.openqa.selenium.interactions.internal.Coordinates where)
Allows the execution of double tapon the screen, analogous to double click using a Mouse.
|
void |
down(int x,
int y)
Allows the execution of the gesture 'down' on the screen.
|
void |
flick(org.openqa.selenium.interactions.internal.Coordinates where,
int xOffset,
int yOffset,
int speed)
Allows the execution of flick gestures starting in a location's element.
|
void |
flick(int xSpeed,
int ySpeed)
Sends a flick gesture to the current view.
|
void |
longPress(org.openqa.selenium.interactions.internal.Coordinates where)
Allows the execution of long press gestures.
|
void |
move(int x,
int y)
Allows the execution of the gesture 'move' on the screen.
|
void |
scroll(org.openqa.selenium.interactions.internal.Coordinates where,
int xOffset,
int yOffset)
Creates a scroll gesture that starts on a particular screen location.
|
void |
scroll(int xOffset,
int yOffset)
Allows the view to be scrolled by an x and y offset.
|
void |
singleTap(org.openqa.selenium.interactions.internal.Coordinates where)
Allows the execution of single tap on the screen, analogous to click using a Mouse.
|
void |
up(int x,
int y)
Allows the execution of the gesture 'up' on the screen.
|
void doubleTap(org.openqa.selenium.interactions.internal.Coordinates where)
where - The coordinates of the element to double tapvoid down(int x,
int y)
x - The x coordinate relative to the viewporty - The y coordinate relative to the viewportvoid flick(org.openqa.selenium.interactions.internal.Coordinates where,
int xOffset,
int yOffset,
int speed)
where - The coordinate of the element to flick onxOffset - The x offset relative to the viewportyOffset - The y offset relative to the viewportspeed - speed to flick, 0 = normal, 1 = fast, 2 = slowvoid flick(int xSpeed,
int ySpeed)
xSpeed - The horizontal speed in pixels/secondySpeed - The vertical speed in pixels/secondvoid longPress(org.openqa.selenium.interactions.internal.Coordinates where)
where - The coordinate of the element to long pressvoid move(int x,
int y)
x - The x coordinate relative to the viewporty - The y coordinate relative to the viewportvoid scroll(org.openqa.selenium.interactions.internal.Coordinates where,
int xOffset,
int yOffset)
where - the location where the scroll starts, usually a WebElement.xOffset - The x offset to scrollyOffset - The y offset to scrollvoid scroll(int xOffset,
int yOffset)
xOffset - The horizontal offset relative to the viewportyOffset - The vertical offset relative to the viewportvoid singleTap(org.openqa.selenium.interactions.internal.Coordinates where)
where - The location on the screen. Typically a WebElementvoid up(int x,
int y)
x - The x coordinate relative to the viewporty - The y coordinate relative to the viewportCopyright © 2014-2016 Machine Publishers, LLC.
Project homepage: https://github.com/machinepublishers/jbrowserdriver