Chris@0: command('visit', $url); Chris@0: } Chris@0: Chris@0: /** Chris@0: * Gets the current url we are in Chris@0: * @return mixed Chris@0: */ Chris@0: public function currentUrl() { Chris@0: return $this->command('current_url'); Chris@0: } Chris@0: Chris@0: /** Chris@0: * Goes back on the browser history if possible Chris@0: * @return bool Chris@0: * @throws BrowserError Chris@0: * @throws \Exception Chris@0: */ Chris@0: public function goBack() { Chris@0: return $this->command('go_back'); Chris@0: } Chris@0: Chris@0: /** Chris@0: * Goes forward on the browser history if possible Chris@0: * @return mixed Chris@0: * @throws BrowserError Chris@0: * @throws \Exception Chris@0: */ Chris@0: public function goForward() { Chris@0: return $this->command('go_forward'); Chris@0: } Chris@0: Chris@0: /** Chris@0: * Reloads the current page we are in Chris@0: */ Chris@0: public function reload() { Chris@0: return $this->command('reload'); Chris@0: } Chris@0: }