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

Manual not clear #75

Open
spagu opened this issue Mar 7, 2017 · 1 comment
Open

Manual not clear #75

spagu opened this issue Mar 7, 2017 · 1 comment

Comments

@spagu
Copy link

spagu commented Mar 7, 2017

I am reading and playing with behat

Basic Browser Interaction
Now that your session is started, you’ll want to open a page with it. Just after starting, the session is not on any page (in a real browser, you would be on the about:blank page), and calling any other action is likely to fail.

$session->visit('http://my_project.dev/some_page.php');

I have stopped in here where I do not know what to do next
Fatal error: Uncaught GuzzleHttp\Exception\RequestException: cURL error 60: SSL certificate problem: unable to get local issuer certificate

I do not have control over global php.ini so I thought I might use simple curl SSL_VERYFY to false. but there is no information how should I do that. Some people say I should create behat.yml but this not work when reading documentation. I stuck for several hrs on a basic action.... solving mistery problems of SSL not focusing on behat testing etc.

Could somone could improve documentation to a level - it just works out of the box?
Thanks

@stof
Copy link
Member

stof commented Mar 8, 2017

Well, the GoutteDriver accepts a Goutte client as first argument, which itself allows to pass a Guzzle client (and creates one otherwise). so you can configure Guzzle explicitly before passing it to GoutteDriver.

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

2 participants