BDD

Cross-Browser Testing with Behat, Mink and Selenium

Behat Demo

Hope you are enjoying Behat scenarios running in a firefox as it’s default driver for MinkExtension. How about running those scenarios in different browsers?

We can use selenium/WebDriver  to run those scenarios in different browsers. Let’s say we have a sample project, e.g here is one on my GitHub account called “Behat-Demo

Cross-Browser

In order to run those scenarios in different browsers, we need to change config file ‘behat.yml’. Let’s change config to run tests in “Safari”

You can change different browsers like safari, firefox opera etc etc.
When it comes to running scenarios in Google chrome, we need to switch to ‘selenium’ driver.

Currently it’s not possible to connect to GoogleChrome using WebDriver Or ChromeDriver.

ENJOY THIS VIDEO !!