Python 如何在Linux中找到firefox插件路径

Python 如何在Linux中找到firefox插件路径,python,linux,firefox,selenium-webdriver,vnc-viewer,Python,Linux,Firefox,Selenium Webdriver,Vnc Viewer,我需要为我正在使用的Firefox配置文件设置Firefox插件路径 profile = webdriver.FirefoxProfile(plugin_path) profile.set_preference("webdriver.load.strategy", "fast") 如何在Linux中找到Firefox插件路径,以便在我的python脚本上传递插件路径我不确定为什么要以这种方式将插件加载到FirefoxProfile?文档有一个不同的示例: File file = new Fil

我需要为我正在使用的Firefox配置文件设置Firefox插件路径

profile = webdriver.FirefoxProfile(plugin_path)
profile.set_preference("webdriver.load.strategy", "fast")

如何在Linux中找到Firefox插件路径,以便在我的python脚本上传递插件路径

我不确定为什么要以这种方式将插件加载到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