These are chat archives for Behat/Behat

30th
Nov 2016
PZZD
@pzzd
Nov 30 2016 17:57
Can anyone provide guidance on getting Behat 3 to work with Selenium 2?
Andrew Kovalyov
@akovalyov
Nov 30 2016 17:59
@pzzd it doesn't differ much from mink with goutte driver - you need to install behat/mink-selenium2-driver and mark selenium2 as a used driver in mink extension
PZZD
@pzzd
Nov 30 2016 18:04
i have gone through that one, but let me give it one more try. do think any of the documentation is incorrect for behat 3?
PZZD
@pzzd
Nov 30 2016 18:11
@akovalyov, thanks for your reply. I'm getting an error: "Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms". This seems like a pretty common problem, according to a search on Google. Any ideas? I've had trouble configuring with behat.yml.
Andrew Kovalyov
@akovalyov
Nov 30 2016 18:13
looks like incompatibility with webdriver and firefox
I would suggest to try with chromedriver or phantomjs with webdriver
but it is not behat-related
PZZD
@pzzd
Nov 30 2016 18:15
ok, i will try that, thanks!
PZZD
@pzzd
Nov 30 2016 18:29
ok, that seems to have worked! thanks @akovalyov. i'll keep testing to make sure it will work against javascript.
PZZD
@pzzd
Nov 30 2016 18:35
should a new browser be opened for every single test?
Andrew Kovalyov
@akovalyov
Nov 30 2016 18:35
it should be opened automatically, yes
(in case of chromedriver ofc)