HumHub Documentation (unofficial)

WebDriverActions
in package

WebDriver action builder. It implements the builder pattern.

Table of Contents

Properties

$action  : mixed
$driver  : mixed
$keyboard  : mixed
$mouse  : mixed

Methods

__construct()  : mixed
click()  : WebDriverActions
Mouse click.
clickAndHold()  : WebDriverActions
Mouse click and hold.
contextClick()  : WebDriverActions
Context-click (right click).
doubleClick()  : WebDriverActions
Double click.
dragAndDrop()  : WebDriverActions
Drag and drop from $source to $target.
dragAndDropBy()  : WebDriverActions
Drag $source and drop by offset ($x_offset, $y_offset).
keyDown()  : WebDriverActions
Press a key on keyboard.
keyUp()  : WebDriverActions
Release a key on keyboard.
moveByOffset()  : WebDriverActions
Mouse move by offset.
moveToElement()  : WebDriverActions
Move to the middle of the given WebDriverElement.
perform()  : mixed
A convenience method for performing the actions without calling build().
release()  : WebDriverActions
Release the mouse button.
sendKeys()  : WebDriverActions
Send keys by keyboard.

Properties

Methods

moveToElement()

Move to the middle of the given WebDriverElement.

public moveToElement(WebDriverElement $element[, int $x_offset = null ][, int $y_offset = null ]) : WebDriverActions

Extra shift, calculated from the top-left corner of the element, can be set by passing $x_offset and $y_offset parameters.

Parameters
$element : WebDriverElement
$x_offset : int = null
$y_offset : int = null
Return values
WebDriverActions

perform()

A convenience method for performing the actions without calling build().

public perform() : mixed

        
On this page

Search results