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(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,
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(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 on.y
- y coordinate to start zoom on.void zoom(WebElement el)
el
- The element to pinch.void tap(int fingers, int x, int y, int duration)
fingers
- number of fingers/appendages to tap with.x
- x coordinate.y
- y coordinate.duration
- how long between pressing down, and lifting fingers/appendages.void tap(int fingers, WebElement element, int duration)
fingers
- number of fingers/appendages to tap with.element
- element to tap.duration
- how long between pressing down, and lifting fingers/appendages.void swipe(int startx, int starty, int endx, int endy, int duration)
startx
- starting x coordinate.starty
- starting y coordinate.endx
- ending x coordinate.endy
- ending y coordinate.duration
- amount of time in milliseconds for the entire swipe action to takevoid pinch(int x, int y)
x
- x coordinate to terminate the pinch on.y
- y coordinate to terminate the pinch on.void pinch(WebElement el)
el
- The element to pinch.Copyright © 2016. All rights reserved.