Python 我如何才能访问诸如profile.content\u settings.exceptions.plugins之类的chrome首选参数文档
在python环境中使用selenium爬行时,我不得不在chrome webdriver中使用flash 我试着找到一个允许闪光的设置 下面的两个链接是我找到的信息Python 我如何才能访问诸如profile.content\u settings.exceptions.plugins之类的chrome首选参数文档,python,google-chrome,selenium,flash,webdriver,Python,Google Chrome,Selenium,Flash,Webdriver,在python环境中使用selenium爬行时,我不得不在chrome webdriver中使用flash 我试着找到一个允许闪光的设置 下面的两个链接是我找到的信息 毕竟,我没有找到一个明确的答案,我在堆栈溢出上找到了问题并解决了它 内容如下。 ChromeOptions选项=新的ChromeOptions(); Map prefs=新的HashMap(); prefs.put(“profile.default\u content\u setting\u values.plugins
ChromeOptions选项=新的ChromeOptions();
Map prefs=新的HashMap();
prefs.put(“profile.default\u content\u setting\u values.plugins”,1);
prefs.put(“profile.content\u settings.plugin\u whitelist.adobeflashplayer”,1);
prefs.put(“profile.content\u settings.exceptions.plugins.*,per\u resource.adobeflashplayer”,1);
//为此站点启用闪存
prefs.put(“pluginAllowedForURL”https://arlo.netgear.com");
选项。设置实验选项(“prefs”,prefs);
我的问题是
1)在哪里可以找到类似的信息
- profile.default\u content\u setting\u values.plugins
- profile.content\u settings.plugin\u whitelist.adobe-flash-player
- rofile.content\u settings.exceptions.plugins.,.per\u resource.adobe-flash-player
由译者写的句子可能会很尴尬。多谢各位
ChromeOptions options = new ChromeOptions();
Map<String, Object> prefs = new HashMap<String, Object>();
prefs.put("profile.default_content_setting_values.plugins", 1);
prefs.put("profile.content_settings.plugin_whitelist.adobe-flash-player", 1);
prefs.put("profile.content_settings.exceptions.plugins.*,*.per_resource.adobe-flash-player", 1);
// Enable Flash for this site
prefs.put("PluginsAllowedForUrls", "https://arlo.netgear.com");
options.setExperimentalOption("prefs", prefs);