Answer the question
In order to leave comments, you need to log in
How to start firefox with specified profile using php-webdriver and selenium?
Kind time of the day, help me figure out the issue, I myself can not. You need to run a unit test using the stack:
<?php
$host = 'http://localhost:4444/wd/hub';
$capabilities = DesiredCapabilities::firefox();
$profile = new \Facebook\WebDriver\Firefox\FirefoxProfile();
$profile->setPreference('network.proxy.socks_remote_dns', false);
$capabilities->setCapability(\Facebook\WebDriver\Firefox\FirefoxDriver::PROFILE, $profile);
$capabilities->setCapability(
'proxy',
[
'proxyType' => 'manual',
'httpProxy' => '127.0.0.1', // proxy for http
'sslProxy' => '127.0.0.1', // proxy for https
]
);
$driver = RemoteWebDriver::create($host, $capabilities, 5000,120000);
?>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question