Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please tell me how to set the parameters about:config #59

Open
StasToken opened this issue May 1, 2017 · 0 comments
Open

Please tell me how to set the parameters about:config #59

StasToken opened this issue May 1, 2017 · 0 comments

Comments

@StasToken
Copy link

Hello I have this code:

require_once(dirname(__FILE__) . '/vendor/autoload.php');
require_once(dirname(__FILE__) . '/PHPWebDriver/WebDriver.php');
require_once(dirname(__FILE__) . '/PHPWebDriver/WebDriverFirefoxProfile.php');
 
$driver = new PHPWebDriver_WebDriver();
$profile = new PHPWebDriver_WebDriverFirefoxProfile('/tmp/1.zip');
$session = $driver->session('firefox', array(), array(), $browser_profile=$profile);
$session->open("example.com");
$session->close();

How do I add ( install ) the value in about:config
I'm a classic php web driver did so
$profile = new \Facebook\WebDriver\Firefox\FirefoxProfile(); $profile->setPreference('geo.enabled', false); $profile->setPreference('network.proxy.socks_remote_dns', false); $profile->setPreference('permissions.default.image', 0);

How do you not tell me?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant