protected function execute(WebDriverElement $element) { $this->webdriver->getMouse()->mouseMove($element->getCoordinates()); if ($this->themeConfiguration->getUseClicksToNavigate()) { $this->webdriver->getMouse()->click(); } }
/** * @return WebDriverCoordinates */ public function getCoordinates() { try { return $this->element->getCoordinates(); } catch (WebDriverException $exception) { $this->dispatchOnException($exception); } }