Skip to content

Instantly share code, notes, and snippets.

@rajeshtaneja
Created June 18, 2014 06:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rajeshtaneja/c81c9cc035dd13434904 to your computer and use it in GitHub Desktop.
Save rajeshtaneja/c81c9cc035dd13434904 to your computer and use it in GitHub Desktop.
Behat config for phantomjs and chrome.
Add following to $CFG->behat_config
'phantomjs' => array(
'filters' => array(
'tags' => '~@_switch_window&&~@_file_upload&&~@_alert&&~@_bug_phantomjs&&@javascript'
),
'extensions' => array(
'Behat\MinkExtension\Extension' => array(
'selenium2' => array(
'browser' => 'phantomjs',
'wd_host' => 'http://' . $linuxip . ':4443/'
)
)
)
),
'chrome' => array(
'filters' => array(
'tags' => '~@_switch_window&&@javascript'
),
'extensions' => array(
'Behat\MinkExtension\Extension' => array(
'default_session' => 'goutte',
'goutte' => null,
'javascript_session' => 'selenium2',
'selenium2' => array(
'browser' => 'google-chrome',
'capabilities' => array(
)
)
)
)
),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment