Integrated
Integrated copied to clipboard
go to specific url
How can I go to a specific url after visit()? For example, I'd like to: $this->visit('/login') ->type('[email protected]', 'email') ->type('pword', 'password') ->click('submit')
and then: ->goto('arbitrary/url')
within the same web browser, so my user is still logged in and can to an arbitrary url.
got it:
protected function goToUrl($url)
{
$url = $this->baseUrl() . $url;
$this->currentPage = $url;
$this->session->open($url);
return $this;
}