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