public interface TouchShortcuts
| Modifier and Type | Method and Description |
|---|---|
void |
pinch(int x,
int y)
Convenience method for pinching an element on the screen.
|
void |
pinch(org.openqa.selenium.WebElement el)
Convenience method for pinching an element on the screen.
|
void |
swipe(int startx,
int starty,
int endx,
int endy,
int duration)
Convenience method for swiping across the screen
|
void |
tap(int fingers,
int x,
int y,
int duration)
Convenience method for tapping a position on the screen
|
void |
tap(int fingers,
org.openqa.selenium.WebElement element,
int duration)
Convenience method for tapping the center of an element on the screen
|
void |
zoom(int x,
int y)
Convenience method for "zooming in" on an element on the screen.
|
void |
zoom(org.openqa.selenium.WebElement el)
Convenience method for "zooming in" on an element on the screen.
|
void zoom(int x,
int y)
x - x coordinate to start zoom ony - y coordinate to start zoom onvoid zoom(org.openqa.selenium.WebElement el)
el - The element to pinchvoid tap(int fingers,
int x,
int y,
int duration)
fingers - number of fingers/appendages to tap withx - x coordinatey - y coordinateduration - void tap(int fingers,
org.openqa.selenium.WebElement element,
int duration)
fingers - number of fingers/appendages to tap withelement - element to tapduration - how long between pressing down, and lifting fingers/appendagesvoid swipe(int startx,
int starty,
int endx,
int endy,
int duration)
startx - starting x coordinatestarty - starting y coordinateendx - ending x coordinateendy - ending y coordinateduration - amount of time in milliseconds for the entire swipe action to
takevoid pinch(int x,
int y)
x - x coordinate to terminate the pinch ony - y coordinate to terminate the pinch onvoid pinch(org.openqa.selenium.WebElement el)
el - The element to pinchCopyright © 2015. All rights reserved.