Chris@0: browser->visit($url); Chris@0: } Chris@0: Chris@0: /** Chris@0: * Gets the current url if any Chris@0: * @return string Chris@0: */ Chris@0: public function getCurrentUrl() { Chris@0: return $this->browser->currentUrl(); Chris@0: } Chris@0: Chris@0: Chris@0: /** Chris@0: * Reloads the page if possible Chris@0: */ Chris@0: public function reload() { Chris@0: $this->browser->reload(); Chris@0: } Chris@0: Chris@0: /** Chris@0: * Goes forward if possible Chris@0: */ Chris@0: public function forward() { Chris@0: $this->browser->goForward(); Chris@0: } Chris@0: Chris@0: /** Chris@0: * Goes back if possible Chris@0: */ Chris@0: public function back() { Chris@0: $this->browser->goBack(); Chris@0: } Chris@0: Chris@0: Chris@0: }