Using PhantomJS both with Selenium and in replace of Selenium With Selenium Here is my example behat profile for this one phantom_via_selenium: paths: features: app/tests/acceptance/features/ui bootstrap: app/tests/acceptance/contexts context: parameters: base_url: https://behat.dev:443 asset_path: '/tmp/' extensions: Behat\MinkExtension\Extension: default_session: selenium2 goutte: guzzle_parameters: curl.options: CURLOPT_SSL_VERIFYPEER: false CURLOPT_CERTINFO: false CURLOPT_TIMEOUT: 120 ssl.certificate_authority: false selenium2: wd_host: "http://selenium-server.dev:4444/wd/hub" capabilities: browser: phantomjs base_url: 'https://behat.dev:443' browser_name: 'phantomjs' And as usual you start up selenium. In both cases the test is this one