[Behat + Selenium3 (Chrome Driver) via Mink] – BDD

Works great with Symfony

"behat/mink-extension": "^2.3",
"behat/mink-goutte-driver": "^1.2",
"behat/mink-selenium2-driver": "^1.3"

behat.yml

default:
  extensions:
    Behat\MinkExtension:
      base_url: http://localhost:8000 # The url of your symfony site.
      # goutte: ~ # commented out because I do not like goutte.
      browser_name: 'chrome'
      selenium2:
        # capabilities: { "browserName": "chrome", "browser": "chrome", 'chrome': {'switches':['--no-sandbox']}}
        wd_host: "http://127.0.0.1:4444/wd/hub"

/features/bootstrap/FeatureContext.php

<?php

use Behat\Behat\Context\Context;
use Behat\Gherkin\Node\PyStringNode;
use Behat\Gherkin\Node\TableNode;
use Behat\MinkExtension\Context\MinkContext;

/**
 * Defines application features from the specific context.
 */
class FeatureContext extends MinkContext implements Context
{
    /**
     * Initializes context.
     *
     * Every scenario gets its own context instance.
     * You can also pass arbitrary arguments to the
     * context constructor through behat.yml.
     */
    public function __construct()
    {
    }
}