Created
May 4, 2017 15:50
-
-
Save phmLabs/9458db7edf4bbcdff545e03d7d880543 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
<?php | |
$options = new ChromeOptions(); | |
$options->addExtensions(array( | |
__DIR__ . '/extension/requests.crx' | |
)); | |
$caps = DesiredCapabilities::chrome(); | |
$caps->setCapability(ChromeOptions::CAPABILITY, $options); | |
$driver = RemoteWebDriver::create($this->getWebdriverHost(), $caps); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment