Created
June 18, 2014 06:21
-
-
Save rajeshtaneja/c81c9cc035dd13434904 to your computer and use it in GitHub Desktop.
Behat config for phantomjs and chrome.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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