Closed leonardoraele closed 3 years ago
Ok, so I just went through the code and found my answer in the Selenium2Factory:84. There's a selenium2.wd_host
property that does what I want. So my behat.yml
is like this now and it's working:
default:
extensions:
Behat\MinkExtension:
sessions:
default:
selenium2:
browser: chrome
capabilities: []
wd_host: http://selenium:4444/wd/hub
I'm running my selenium instance and behat in separate docker containers. By default, behat/mink-selenium2-driver tries to connect to selenium on
localhost:4444
, so it won't work, but it does allow you to configure the selenium host. How do I configure this in mybehat.yml
though? I didn't find how to do it in the doc.