We are using Behat with Mink. So far we used to just set the DesiredCapabilities in the code, but now we want to change that to get them from the behat.yml and use different profiles, so we have one profile for firefox, one for chrome... and so on.
Now this is my behat.yml at the moment:
chrome:
extensions:
Behat\MinkExtension:
sessions:
default:
selenium2:
wd_host: "http://localhost:4444/wd/hub"
capabilities:{"browserName":"chrome","version":"51","platform":"ANY","browserVersion":"51","browser":"chrome","name":"Behat Test","deviceOrientation":"portrait","deviceType":"tablet", "selenium-version":"2.31.0"}
When I try to start a test with profile chrome I get this error:
[Symfony\Component\Config\Definition\Exception\InvalidConfigurationException]Unrecognized option "selenium-version" under testwork.mink.sessions.default.selenium2.capabilities"
If I remove the 'selenium-version' part it just jumps into using the default capabilities defined in Selenium2Driver.php
Any idea why this happens? After all, the default Capabilities of Selenium2 use selenium-version too...