/** * Performs a double click on 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()); }