Skip to content

Instantly share code, notes, and snippets.

@jconroy
Created December 6, 2017 03:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jconroy/77e2643b740c9079ae7d365b34ea426d to your computer and use it in GitHub Desktop.
Save jconroy/77e2643b740c9079ae7d365b34ea426d to your computer and use it in GitHub Desktop.
Example php-webdriver host config
$host = 'http://localhost:4444/wd/hub';
// For Chrome
$capabilities = DesiredCapabilities::chrome();
$capabilities->setCapability( 'acceptSslCerts', true );
// For Firefox
//$capabilities = DesiredCapabilities::firefox();
//$capabilities->setCapability( 'acceptInsecureCerts', true );
$driver = RemoteWebDriver::create( $host, $capabilities, 5000 );
$driver->get( 'https://store.localhost/' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment