/** * Uri of currently opened page. * @return string * @api * @throws ModuleException */ public function _getCurrentUri() { $url = $this->webDriver->getCurrentURL(); if ($url == 'about:blank') { throw new ModuleException($this, "Current url is blank, no page was opened"); } return Uri::retrieveUri($url); }
/** * @return string * @throws ModuleException */ public function _getCurrentUri() { return Uri::retrieveUri($this->getRunningClient()->getHistory()->current()->getUri()); }