Skip to content

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

Description

@StasToken

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions