title: How to handle Behat Mink HTTP basic authentication
body: <p>I am working in Firefox, via the Behat Mink framework's bridge to the Selenium 2 driver. When I run the test, I get an HTTP proxy authentication popup. My <strong>behat.yaml</strong> file has a basic authentication username and password but they don't work. Could you please give me an idea to handle this popup authentication?</p>
  
  <p><img src="https://i.stack.imgur.com/iEyjw.png" alt="enter image description here"></p>
  
  <p>I also tried with the setBasicAuth() function, but it did not work for me:</p>
  
  <pre><code>$this-&gt;getSession()-&gt;getDriver()-&gt;setBasicAuth('dharmalingam' ,'Welcome123');
  </code></pre>
  
  <p>My behat.yml contains:</p>
  
  <pre><code>extensions:
        Behat\MinkExtension\Extension:
          default_session: selenium2
          javascript_session: selenium2
          goutte:              ~
          selenium2:
            browser: 'firefox'
            wd_host: http://dharmainin:6eb372e8-708f-4e07-a33f-b712aab3cd77@ondemand.saucelabs.com:80/wd/hub
            capabilities:
                version: ~
                platform: 'Windows 2008'
        features/extensions/SauceIntegration.php:
          param1: value1
      context:
          parameters:
            base_url: "http://example.com/"
            basic_auth:
              username: 'dharmalingam'
              password: 'Welcome123'
  </code></pre>