WebDriverTouchActions
class WebDriverTouchActions extends WebDriverActions (View source)
WebDriver action builder for touch events
Properties
protected | $driver | from WebDriverActions | |
protected | $keyboard | from WebDriverActions | |
protected | $mouse | from WebDriverActions | |
protected | $action | from WebDriverActions | |
protected WebDriverTouchScreen | $touchScreen |
Methods
A convenience method for performing the actions without calling build().
Mouse click and hold.
Context-click (right click).
Double click.
Drag and drop from $source to $target.
Drag $source and drop by offset ($x_offset, $y_offset).
Mouse move by offset.
Move to the middle of the given WebDriverElement.
Release the mouse button.
Press a key on keyboard.
Release a key on keyboard.
Send keys by keyboard.
No description
No description
No description
No description
No description
Details
__construct(WebDriverHasInputDevices $driver)
No description
perform()
A convenience method for performing the actions without calling build().
WebDriverActions
click(WebDriverElement|null $element = null)
Mouse click.
If $element is provided, move to the middle of the element first.
WebDriverActions
clickAndHold(WebDriverElement|null $element = null)
Mouse click and hold.
If $element is provided, move to the middle of the element first.
WebDriverActions
contextClick(WebDriverElement|null $element = null)
Context-click (right click).
If $element is provided, move to the middle of the element first.
WebDriverActions
doubleClick(WebDriverElement|null $element = null)
Double click.
If $element is provided, move to the middle of the element first.
WebDriverActions
dragAndDrop(WebDriverElement $source, WebDriverElement $target)
Drag and drop from $source to $target.
WebDriverActions
dragAndDropBy(WebDriverElement $source, int $x_offset, int $y_offset)
Drag $source and drop by offset ($x_offset, $y_offset).
WebDriverActions
moveByOffset(int $x_offset, int $y_offset)
Mouse move by offset.
WebDriverActions
moveToElement(WebDriverElement $element, int $x_offset = null, int $y_offset = null)
Move to the middle of the given WebDriverElement.
Extra shift, calculated from the top-left corner of the element, can be set by passing $x_offset and $y_offset parameters.
WebDriverActions
release(WebDriverElement|null $element = null)
Release the mouse button.
If $element is provided, move to the middle of the element first.
WebDriverActions
keyDown(WebDriverElement|null $element = null, string $key = null)
Press a key on keyboard.
If $element is provided, focus on that element first.
WebDriverActions
keyUp(WebDriverElement|null $element = null, string $key = null)
Release a key on keyboard.
If $element is provided, focus on that element first.
WebDriverActions
sendKeys(WebDriverElement|null $element = null, string $keys = null)
Send keys by keyboard.
If $element is provided, focus on that element first (using single mouse click).
WebDriverTouchActions
tap(WebDriverElement $element)
No description
WebDriverTouchActions
down(int $x, int $y)
No description
WebDriverTouchActions
up(int $x, int $y)
No description
WebDriverTouchActions
move(int $x, int $y)
No description
WebDriverTouchActions
scroll(int $x, int $y)
No description
WebDriverTouchActions
scrollFromElement(WebDriverElement $element, int $x, int $y)
No description
WebDriverTouchActions
doubleTap(WebDriverElement $element)
No description
WebDriverTouchActions
longPress(WebDriverElement $element)
No description
WebDriverTouchActions
flick(int $x, int $y)
No description
WebDriverTouchActions
flickFromElement(WebDriverElement $element, int $x, int $y, int $speed)
No description