Integrated icon indicating copy to clipboard operation
Integrated copied to clipboard

go to specific url

Open iateadonut opened this issue 9 years ago • 1 comments

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.

iateadonut avatar Mar 29 '16 14:03 iateadonut

got it:

protected function goToUrl($url)
{
    $url = $this->baseUrl() . $url;
    $this->currentPage = $url;
    $this->session->open($url);
    return $this;
}

iateadonut avatar Mar 30 '16 14:03 iateadonut