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