title: Enabling Mink Extension in Behat
body: <p>I'm trying to add the Mink extension to Behat. I've installed Behat, Mink and Mink-Extension through composer. However, now I'm having trouble with enabling the extension. Here is my <code>behat.yml</code>:</p>
  
  <pre><code>default:
  extensions:
      Behat\MinkExtension\Extension:
          base_url: http://en.wikipedia.org
          goutte: ~
          selenium2: ~
  </code></pre>
  
  <p>Here is my example test:</p>
  
  <pre><code>Feature: New
      In order to test Behat
      As a developer
      I need to test that Mink Extension works
  
      Scenario:
          Given I am on the homepage
  </code></pre>
  
  <p>When I run Behat, I get this output:</p>
  
  <pre><code>Feature: New
    In order to test Behat
    As a developer
    I need to test that Mink Extension works
  
    Scenario:                    # features/new.feature:6
      Given I am on the homepage # FeatureContext::iAmOnHomepage()
      Mink instance has not been set on Mink context class. Have you enabled the Mink Extension? (RuntimeException)
  
  --- Failed scenarios:
  
  features/new.feature:6
  
  1 scenario (1 failed)
  1 step (1 failed)
  0m0.02s (11.86Mb)
  </code></pre>
  
  <p>So I searched for 'Mink instance has not been set on Mink context class. Have you enabled the Mink Extension? (RuntimeException)' and got no decent results. What do I need to do to enable the extension?</p>