Created
December 24, 2017 17:05
-
-
Save jackrabbithanna/bd038c0ed0dcb2de21271d99d97d323e to your computer and use it in GitHub Desktop.
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
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