Closed Drillan767 closed 6 years ago
Behat\Mink\Driver\Selenium2Driver is not a Behat context at all. what you need in your contexts
configuration is your FeatureContext class
Soooo... I made it work, I don't know how, but I just made sure that composer.json
required the MinkSelenium2Driver, I added @javascript
to my test, removed everything related to the driver from my FeatureContext and... it worked. I can't figure out how nor why but it works. So, thank you I guess, I can close this :')
Hello, this might be pretty simple but I can't manage to correctly implement MinkSelenium2Driver in a Behat configuration.
I actually need it in a way bigger project, but I created a small / simple project so that I have the control on everything without breaking anything.
Here is my behat.yml file:
Here is my FeatureContext file:
And here is my dummy feature file:
Without adding the
- Behat\Mink\Driver\Selenium2Driver
line to the behat file, everything works. However, adding it returns the following error:And since your example is pretty much outdated, I can't find any good example
So my question is: how can I implement it correctly?
Thank you in advance