Reputation: 77
I can't find FirefoxDriver's option, which equivalents --always-authorize-plugins in ChromeDriver.
Does FirefoxDriver contain an equivalent option?
P.S. --always-authorize-plugins enables all plugin in ChromeDriver.
Upvotes: 1
Views: 1387
Reputation: 77
I find a solution for my problem.
My Solution:
win + r => "firefox.exe + -p"
%APPDATA%/Mozila/Firefox/Profiles/[profileName]
then I start webDriver with the profile
var until = require('selenium-webdriver').until,
firefox = require('selenium-webdriver/firefox');
var options = new firefox.Options();
options.setProfile([fullPath]);
var driver = new firefox.Driver(options);
driver.get('www.google.com');
driver.wait(until.titleIs('webdriver - Google Search'), 20000);
driver.quit();
activate need plugins while firefox is open.
webDriver
.Upvotes: 2