Sample behat.yml file for Behat Drupal Extension Blackbox Driver Project

Profile picture for user devraj

Behat has default configuration with it but sometime default configuration is not enough. You need some extended tool to configure your features. 

Drupal extension has different configuration for each type of drivers. Below is the sample behat.yml file supporting chrome as a browser:

#behat.yml
default:
  autoload:
    '%paths.base%/features/bootstrap'
  suites:
    default:
      contexts:
        - FeatureContext
        - Drupal\DrupalExtension\Context\MinkContext
        - Drupal\DrupalExtension\Context\MessageContext
        - Drupal\DrupalExtension\Context\DrupalContext
      paths:
        - %paths.base%/features
  extensions:
    Behat\MinkExtension:
        browser_name: 'chrome'
        goutte: ~
        javascript_session: selenium2
        selenium2:
          wd_host: http://127.0.0.1:4444/wd/hub
          capabilities: { "browser": "chrome", "version": "*", 'chrome': {'switches':['--start-maximized']}}
        base_url: 'http://www.programsbuzz.com'
    Drupal\DrupalExtension:
        blackbox: ~
        region_map:
              main_menu: '.main-menu'
              footer_menu: '.footer-menu'