2016-01-26 1 views
0

Мне нужно установить путь плагина Firefox для профиля Firefox, который я использую.Как найти путь плагинов firefox в Linux

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

Как найти Firefox плагин путь в Linux, так что я могу передать PLUGIN_PATH на мой питон скрипт

ответ

0

Я не уверен, почему вы хотите, чтобы загрузить плагин этот путь к FirefoxProfile? Docs есть другой пример:

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

Смежные вопросы