forked from php-webdriver/php-webdriver
-
Notifications
You must be signed in to change notification settings - Fork 0
FirefoxProfile
Wai Hon Law edited this page May 29, 2014
·
4 revisions
Note that it is not yet pushed.
FirefoxProfile is the class managing the firefox profile. You can find more details in https://code.google.com/p/selenium/wiki/FirefoxDriver. Here is the guide of using FirefoxProfile in facebook/php-webdirver.
$profile = new FirefoxProfile();
// Let's set the start up home page to github.com/facebook/php-webdriver ! $profile->setPreference( 'browser.startup.homepage', 'https://github.com/facebook/php-webdriver/' );
$profile->addExtension('/path/to/firefox/extension1.xpi')
->addExtension('/path/to/firefox/extension2.xpi');
$caps = DesiredCapabilities::firefox();
$caps->setCapability(FirefoxDriver::PROFILE, $profile);
$driver = RemoteWebDriver::create($url, $caps);