Skip to content

Instantly share code, notes, and snippets.

@phmLabs
Created May 4, 2017 15:50
Show Gist options
  • Save phmLabs/9458db7edf4bbcdff545e03d7d880543 to your computer and use it in GitHub Desktop.
Save phmLabs/9458db7edf4bbcdff545e03d7d880543 to your computer and use it in GitHub Desktop.
<?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