2024-04-27 00:44:59 发布
网友
我需要把我使用的Firefox配置文件的Firefox插件路径。你知道吗
profile = webdriver.FirefoxProfile(plugin_path) profile.set_preference("webdriver.load.strategy", "fast")
如何在Linux中找到Firefox插件路径,以便在python脚本中传递插件路径
我不知道你为什么要这样加载插件到FirefoxProfile?文档有一个不同的例子:
FirefoxProfile
File file = new File("firebug-1.8.1.xpi"); FirefoxProfile firefoxProfile = new FirefoxProfile(); firefoxProfile.addExtension(file); firefoxProfile.setPreference("extensions.firebug.currentVersion", "1.8.1"); // Avoid startup screen WebDriver driver = new FirefoxDriver(firefoxProfile);
无论如何,Firefox的插件都位于~/.mozilla/firefox/MY_PROFILE/extensions
~/.mozilla/firefox/MY_PROFILE/extensions
我不知道你为什么要这样加载插件到
FirefoxProfile
?文档有一个不同的例子:无论如何,Firefox的插件都位于
~/.mozilla/firefox/MY_PROFILE/extensions
相关问题 更多 >
编程相关推荐