Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
peripherad
/
vendor
/
php-webdriver
/
webdriver
/
lib
/
Interactions
/
Internal
:
WebDriverMoveToOffsetAction.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php namespace Facebook\WebDriver\Interactions\Internal; use Facebook\WebDriver\Internal\WebDriverLocatable; use Facebook\WebDriver\WebDriverAction; use Facebook\WebDriver\WebDriverMouse; class WebDriverMoveToOffsetAction extends WebDriverMouseAction implements WebDriverAction { /** * @var int|null */ private $xOffset; /** * @var int|null */ private $yOffset; /** * @param int|null $x_offset * @param int|null $y_offset */ public function __construct( WebDriverMouse $mouse, WebDriverLocatable $location_provider = null, $x_offset = null, $y_offset = null ) { parent::__construct($mouse, $location_provider); $this->xOffset = $x_offset; $this->yOffset = $y_offset; } public function perform() { $this->mouse->mouseMove( $this->getActionLocation(), $this->xOffset, $this->yOffset ); } }