![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/vendor/php-webdriver/webdriver/lib/Interactions/Internal/ |
<?php namespace Facebook\WebDriver\Interactions\Internal; use Facebook\WebDriver\Internal\WebDriverLocatable; use Facebook\WebDriver\WebDriverMouse; /** * Base class for all mouse-related actions. */ class WebDriverMouseAction { /** * @var WebDriverMouse */ protected $mouse; /** * @var WebDriverLocatable */ protected $locationProvider; /** * @param WebDriverMouse $mouse * @param WebDriverLocatable|null $location_provider */ public function __construct(WebDriverMouse $mouse, WebDriverLocatable $location_provider = null) { $this->mouse = $mouse; $this->locationProvider = $location_provider; } /** * @return null|WebDriverCoordinates */ protected function getActionLocation() { if ($this->locationProvider !== null) { return $this->locationProvider->getCoordinates(); } return null; } protected function moveToLocation() { $this->mouse->mouseMove($this->locationProvider); } }