Behat / MinkExtension

Mink extension (tight integration and configuration) for Behat
MIT License
636 stars 279 forks source link

[HELP] How do I configure selenium2 host url? #372

Closed leonardoraele closed 3 years ago

leonardoraele commented 3 years ago

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 my behat.yml though? I didn't find how to do it in the doc.

leonardoraele commented 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