我找不到FirefoxDriver's选项,它相当于ChromeDriver中的--always-authorize-plugins。
FirefoxDriver是否包含一个等效的选项?
P.S. --always-authorize-plugins支持ChromeDriver中的所有插件。
发布于 2015-02-04 10:09:08
我找到了解决问题的办法。
我的解决方案:
win + r => "firefox.exe + -p"%APPDATA%/Mozila/Firefox/Profiles/[profileName]的完整路径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();webDriver。发布于 2015-02-03 09:28:45
在"plugin.state.java" = 2配置文件中尝试FireFox
https://stackoverflow.com/questions/28293236
复制相似问题