Created
December 6, 2017 03:56
-
-
Save jconroy/77e2643b740c9079ae7d365b34ea426d to your computer and use it in GitHub Desktop.
Example php-webdriver host config
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
$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