stopping geckodriver.log

401 views
Skip to first unread message

aad

unread,
Mar 20, 2022, 12:14:51 AM3/20/22
to Selenium Users
i am using the selenium bindings for python in combination with geckodriver to scrape some websites.
upon executing my program a log file called geckodriver.log is created, how can i disable this behavior?

initializing the WebDriver with:

WebDriver(log_path=path.devnull)

gives a deprecation warning and does not work
(DeprecationWarning: log_path has been deprecated, please pass in a Service object)

using a service object, like described in the error message, is no good either, becuase it does not contain a field for log_path.
(i think the service object for chrome does contain such a property, though i have not tested this)

i did not want to open a github issue, since i don't yet know if i am just missing some information on this matter.


Reply all
Reply to author
Forward
0 new messages