HumHub Documentation (unofficial)

WebDriverTouchScreen

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

down()

Finger down on the screen.

public down(int $x, int $y) : $this
Parameters
$x : int
$y : int
Return values
$this

flick()

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
$this

flickFromElement()

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
$this

move()

Finger move on the screen.

public move(int $x, int $y) : $this
Parameters
$x : int
$y : int
Return values
$this

scroll()

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
$this

scrollFromElement()

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
$this

up()

Finger up on the screen.

public up(int $x, int $y) : $this
Parameters
$x : int
$y : int
Return values
$this

        
On this page

Search results