/** * 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()); }
/** * Double-click and element. * * @param $element * * @return $this */ protected function doubleClick($element) { (new WebDriverDoubleClickAction($this->driver->getMouse(), $this->el($element)))->perform(); return $this; }