First you’ll need to install the drivers for Mink:
$ composer require --dev behat/mink-selenium2-driver="^1.2"
And you’ll also need to download the Selenium standalone server jar file and start it:
$ java -jar selenium-server-standalone-2.*.jar
We’ll also need to tell Behat that when we use the
Then, for each test you want to be run using browser emulation, you just need to add a
@selenium2) tag to the beginning of the feature or scenario.
The test can then be run via Behat (as any other test). The one difference is, when the test is run it should spawn a browser window on the computer running the Selenium standalone server which will then perform the tests described.
if you want to reproduce, please indicate the source: