WebDriverTouchScreen
in
Interface representing touch screen operations.
Table of Contents
Methods
- doubleTap() : $this
- Double tap on the touch screen using finger motion events.
- down() : $this
- Finger down on the screen.
- flick() : $this
- Flick on the touch screen using finger motion events. Use this flick command if you don't care where the flick starts on the screen.
- flickFromElement() : $this
- Flick on the touch screen using finger motion events.
- longPress() : $this
- Long press on the touch screen using finger motion events.
- move() : $this
- Finger move on the screen.
- scroll() : $this
- Scroll on the touch screen using finger based motion events. Use this command if you don't care where the scroll starts on the screen.
- scrollFromElement() : $this
- Scroll on the touch screen using finger based motion events. Use this command to start scrolling at a particular screen location.
- tap() : $this
- Single tap on the touch enabled device.
- up() : $this
- Finger up on the screen.
Methods
doubleTap()
Double tap on the touch screen using finger motion events.
public
doubleTap(WebDriverElement $element) : $this
Parameters
- $element : WebDriverElement
Return values
$thisdown()
Finger down on the screen.
public
down(int $x, int $y) : $this
Parameters
- $x : int
- $y : int
Return values
$thisflick()
Flick on the touch screen using finger motion events. Use this flick command if you don't care where the flick starts on the screen.
public
flick(int $xspeed, int $yspeed) : $this
Parameters
- $xspeed : int
- $yspeed : int
Return values
$thisflickFromElement()
Flick on the touch screen using finger motion events.
public
flickFromElement(WebDriverElement $element, int $xoffset, int $yoffset, int $speed) : $this
This flickcommand starts at a particular screen location.
Parameters
- $element : WebDriverElement
- $xoffset : int
- $yoffset : int
- $speed : int
Return values
$thislongPress()
Long press on the touch screen using finger motion events.
public
longPress(WebDriverElement $element) : $this
Parameters
- $element : WebDriverElement
Return values
$thismove()
Finger move on the screen.
public
move(int $x, int $y) : $this
Parameters
- $x : int
- $y : int
Return values
$thisscroll()
Scroll on the touch screen using finger based motion events. Use this command if you don't care where the scroll starts on the screen.
public
scroll(int $xoffset, int $yoffset) : $this
Parameters
- $xoffset : int
- $yoffset : int
Return values
$thisscrollFromElement()
Scroll on the touch screen using finger based motion events. Use this command to start scrolling at a particular screen location.
public
scrollFromElement(WebDriverElement $element, int $xoffset, int $yoffset) : $this
Parameters
- $element : WebDriverElement
- $xoffset : int
- $yoffset : int
Return values
$thistap()
Single tap on the touch enabled device.
public
tap(WebDriverElement $element) : $this
Parameters
- $element : WebDriverElement
Return values
$thisup()
Finger up on the screen.
public
up(int $x, int $y) : $this
Parameters
- $x : int
- $y : int