0

I'm using Selenium with python. and I'm getting these in the output: enter image description here

Which I want to skip. So please tell me how can I skip these warnings.

undetected Selenium
  • 183,867
  • 41
  • 278
  • 352
Krishna Gupta
  • 166
  • 1
  • 10
  • You should post whichs libraries are you using, but check this https://stackoverflow.com/questions/11029717/how-do-i-disable-log-messages-from-the-requests-library – Wonka Dec 16 '21 at 11:46

1 Answers1

0

To suppress the DEBUG logs you can use add_experimental_option() through an instance of Options() as follows:

options = Options()
options.add_experimental_option('excludeSwitches', ['enable-logging'])
driver = webdriver.Chrome(executable_path=r'C:\BrowserDrivers\chromedriver.exe', options=options)
driver.get("https://www.google.com/")
undetected Selenium
  • 183,867
  • 41
  • 278
  • 352