Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are 'service_args' for the selenium-python chrome webdriver?

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.

So where can I find proper documentation on the service_args argument?

like image 969
Alex Avatar asked Nov 25 '25 22:11

Alex


1 Answers

service_args are used inconjunction with chromedriver binary to pass the List of args to the chromedriver service

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"]

Your line of code will be :

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"])
like image 68
undetected Selenium Avatar answered Nov 27 '25 12:11

undetected Selenium



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!