0

How can i diseble the seleniuum logs? I tried :

import logging
logging.disable(logging.CRITICAL)
driver = webdriver.Chrome(service_log_path='/dev/null')
chromedriver --log-level=OFF

Any of this worked for me

  • Do any of the answers in this [related question](https://stackoverflow.com/questions/11613869/how-to-disable-logging-using-selenium-with-python-binding) solve your issue? – CodeMonkey Mar 16 '22 at 16:20

1 Answers1

0

Would this code snippet solve your problem?

options = Options()
options.headless = True
options.add_experimental_option("excludeSwitches", ["enable-logging"])
xtekky
  • 572
  • 1
  • 4
  • 13