硒-python chrome webdriver的"service_args"是什么? [英] What are 'service_args' for the selenium-python chrome webdriver?
本文介绍了硒-python chrome webdriver的"service_args"是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在文档中搜索了chrome webdriver的参数service_args
,然后找到了以下页面:此处,不幸的是,其中不包含任何有用的内容来回答我的问题.
I searched documentation for the argument service_args
for the chrome webdriver, and I found the following pages: here and here, which unfortunately do not contain any useful content to answer my question.
那么在哪里可以找到有关service_args
参数的适当文档?
So where can I find proper documentation on the service_args
argument?
推荐答案
service_args
与 chromedriver
二进制结合使用以传递
例如传递参数,例如日志文件路径,忽略ssl错误,任何ssl协议,如下所示:
An example would be to pass the parameters e.g. log file path, to ignore ssl errors, any ssl protocol as follows :
service_args=["--log-path=D:\\Alex.log", "--ignore-ssl-errors=true", "--ssl-protocol=any"]
您的代码行将是:
driver = webdriver.Chrome(executable_path=r'C:\Utility\BrowserDrivers\chromedriver.exe', service_args=["--log-path=D:\\qc1.log", "--ignore-ssl-errors=true", "--ssl-protocol=any"])
这篇关于硒-python chrome webdriver的"service_args"是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文