docs icon indicating copy to clipboard operation
docs copied to clipboard

Manual not clear

Open spagu opened this issue 8 years ago • 1 comments

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

spagu avatar Mar 07 '17 23:03 spagu

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.

stof avatar Mar 08 '17 09:03 stof