Álvaro N. Franz
Álvaro N. Franz

Reputation: 1228

Selenium Chromedriver disable log on Windows

I am running selenium via python 3 with the chromedriver browser on windows 10.

The program is very active and should run constantly. Means: lots of logging going on.

Problem: the crhomedriver logs get way too long after a few hours, and windows tends to crash.

enter image description here

Everything is working fine, the logs are just minor issues about which I do not really care.

Question:

How may I disable the chromedriver logs?

Notes:

Upvotes: 1

Views: 3676

Answers (1)

Satish Michael
Satish Michael

Reputation: 2015

Try this, not sure it will work. Pass the options to your chromedriver

from selenium.webdriver.chrome.options import Options
options = Options()
options.add_argument('--disable-logging')

Upvotes: 2

Related Questions