Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

go to specific url #133

Open
iateadonut opened this issue Mar 29, 2016 · 1 comment
Open

go to specific url #133

iateadonut opened this issue Mar 29, 2016 · 1 comment

Comments

@iateadonut
Copy link

How can I go to a specific url after visit()?
For example, I'd like to:
$this->visit('/login')
->type('me@email.com', '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
Copy link
Author

got it:

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant