Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
class LmsLrsTestCaseSelenium extends \PHPUnit_Extensions_Selenium2TestCase {
/**
* Standard phpunit setup method.
*/
public function setUp() {
global $bootstrap;
if (!empty($bootstrap)) {
$this->bootstrap = $bootstrap;
}
// Setup the browser.
$this->setBrowser('chrome');
$capabilities = array(
'chromeOptions' => array('args' => array("disable-bundled-ppapi-flash"))
);
if (!empty($bootstrap['headless'])) {
$capabilities['chromeOptions']['args'][] = 'headless';
}
$this->setDesiredCapabilities($capabilities);
$this->setBrowserUrl($this->config['base_url']);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.