使用Python selenium自动化ChromeOptions允许像我们使用配置文件一样使用firefox

时间:2018-05-10 09:03:00

标签: python selenium selenium-webdriver selenium-chromedriver webautomation

我一直在寻找使用chrome选项启用flash和其他内部插件的选项,这样我的网络自动化就可以在没有任何人工操作的情况下通过。

对于Firefox,它正在工作,

profile = webdriver.FirefoxProfile()
profile.set_preference('plugin.state.flash', 2)

但我想使用chrome,默认情况下应启用所有集成的插件和闪存。需要帮助。

使用python。

0 个答案:

没有答案
相关问题