예제 #1
0
 /**
  * Performs a double-click on an element matched by CSS or XPath.
  *
  * @param $cssOrXPath
  * @throws \Codeception\Exception\ElementNotFound
  */
 public function doubleClick($cssOrXPath)
 {
     $el = $this->matchFirstOrFail($this->webDriver, $cssOrXPath);
     $this->webDriver->getMouse()->doubleClick($el->getCoordinates());
 }
예제 #2
0
 /**
  * Double-click and element.
  *
  * @param $element
  *
  * @return $this
  */
 protected function doubleClick($element)
 {
     (new WebDriverDoubleClickAction($this->driver->getMouse(), $this->el($element)))->perform();
     return $this;
 }