interface WebDriverTouchScreen (View source)

Interface representing touch screen operations.

Methods

$this
tap(WebDriverElement $element)

Single tap on the touch enabled device.

$this
doubleTap(WebDriverElement $element)

Double tap on the touch screen using finger motion events.

$this
down(int $x, int $y)

Finger down on the screen.

$this
flick(int $xspeed, int $yspeed)

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.

$this
flickFromElement(WebDriverElement $element, int $xoffset, int $yoffset, int $speed)

Flick on the touch screen using finger motion events.

$this
longPress(WebDriverElement $element)

Long press on the touch screen using finger motion events.

$this
move(int $x, int $y)

Finger move on the screen.

$this
scroll(int $xoffset, int $yoffset)

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.

$this
scrollFromElement(WebDriverElement $element, int $xoffset, int $yoffset)

Scroll on the touch screen using finger based motion events. Use this command to start scrolling at a particular screen location.

$this
up(int $x, int $y)

Finger up on the screen.

Details

$this tap(WebDriverElement $element)

Single tap on the touch enabled device.

Parameters

WebDriverElement $element

Return Value

$this

$this doubleTap(WebDriverElement $element)

Double tap on the touch screen using finger motion events.

Parameters

WebDriverElement $element

Return Value

$this

$this down(int $x, int $y)

Finger down on the screen.

Parameters

int $x
int $y

Return Value

$this

$this flick(int $xspeed, int $yspeed)

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.

Parameters

int $xspeed
int $yspeed

Return Value

$this

$this flickFromElement(WebDriverElement $element, int $xoffset, int $yoffset, int $speed)

Flick on the touch screen using finger motion events.

This flickcommand starts at a particular screen location.

Parameters

WebDriverElement $element
int $xoffset
int $yoffset
int $speed

Return Value

$this

$this longPress(WebDriverElement $element)

Long press on the touch screen using finger motion events.

Parameters

WebDriverElement $element

Return Value

$this

$this move(int $x, int $y)

Finger move on the screen.

Parameters

int $x
int $y

Return Value

$this

$this scroll(int $xoffset, int $yoffset)

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.

Parameters

int $xoffset
int $yoffset

Return Value

$this

$this scrollFromElement(WebDriverElement $element, int $xoffset, int $yoffset)

Scroll on the touch screen using finger based motion events. Use this command to start scrolling at a particular screen location.

Parameters

WebDriverElement $element
int $xoffset
int $yoffset

Return Value

$this

$this up(int $x, int $y)

Finger up on the screen.

Parameters

int $x
int $y

Return Value

$this