我无法在Chrome上运行我的脚本的自动化,它显示了某种错误,如:硒不支持的命令
You are using unsupported command-line-flag:--ignore--certificate--errors.stability and security will suffer.
我无法在Chrome上运行我的脚本的自动化,它显示了某种错误,如:硒不支持的命令
You are using unsupported command-line-flag:--ignore--certificate--errors.stability and security will suffer.
您需要在命令行开关添加到您的ChromeOptions()
。
在蟒蛇,它看起来像这样:
options = webdriver.ChromeOptions()
switches = ["ignore-certificate-errors"]
options.add_experimental_option("excludeSwitches", switches)
chrome = options.to_capabilities()
然后chrome
变量传递给你的ChromeDriver
对象的初始化。
很明显,如果你不使用Python,你需要改变上面的内容来套用你使用的绑定。
我正在使用Java。 –
最初我的脚本正在运行,但是无论何时打开新窗口,它都向我显示了这种错误:DISABLE DEVELOPER MODE EXTENTION –
0123.最初我的脚本正在运行,但是每当新窗口打开时,它都会显示我这种错误:DISABLE DEVELOPER MODE EXTENTION –