forked from php-webdriver/php-webdriver
-
Notifications
You must be signed in to change notification settings - Fork 0
HowTo Work with proxy
Wai Hon Law edited this page Aug 29, 2013
·
2 revisions
Example for an HTTP and SSL proxy
$wd_host = 'http://localhost:4444/wd/hub';
$capabilities = array(WebDriverCapabilityType::BROWSER_NAME => 'firefox',
WebDriverCapabilityType::PROXY => array('proxyType' => 'manual',
'httpProxy' => '127.0.0.1:2043', 'sslProxy' => '127.0.0.1:2043'));
$driver = new RemoteWebDriver($wd_host, $capabilities);
See https://code.google.com/p/selenium/wiki/DesiredCapabilities#Proxy_JSON_Object for more options.