title: Running behat test under different browsers
body: <p>I want run behat tests in certain browsers so when I type something like this <code>bin/behat firefox</code> or <code>bin/behat chrome</code> or <code>bin/behat opera</code> tests should be run under respective browsers. Is it possible? If so, how should I modify my yml below or anything else? The reason I need such thing is that the selenium sometimes doesn't like some browsers based on its version.</p>
  
  <p>I read thru <a href="https://github.com/Behat/Behat/issues/38" rel="nofollow">this post</a> but I didn't quiet get it to apply to my behat.yml</p>
  
  <p><strong>behat.yml</strong>:</p>
  
  <pre><code>default:
      context:
          class: Football\LeagueBundle\Features\Context\FeatureContext
          parameters:
              output_path: %behat.paths.base%/test/report/behat/output/
              screen_shot_path: %behat.paths.base%/test/report/behat/screenshot/
      extensions:
          Behat\Symfony2Extension\Extension:
              mink_driver: true
              kernel:
                  env: test
                  debug: true
          Behat\MinkExtension\Extension:
              base_url: 'http://symfony.local/app_test.php/'
              files_path: %behat.paths.base%/test/dummy/
              browser_name: firefox
              goutte: ~
              selenium2: ~
      paths:
          features: %behat.paths.base%/src
          bootstrap: %behat.paths.features%/Context
  </code></pre>
  
  <p><strong>example feature</strong></p>
  
  <pre><code>Feature: Visit Home Page
    In order to see hello message
    As a user
    I should be able to visit home page
  
    #SUCCESS
    @javascript
    Scenario: I visit home page
      When I go to "/"
      Then I should see "Hello Symfony!"
  
    #FAIL
    @javascript
    Scenario: I visit home page
      When I go to "/"
      Then I should not see "Hello Behat!"
  </code></pre>