operasoftware / operachromiumdriver

OperaDriver for Chromium-based Opera releases
Other
261 stars 47 forks source link

How can I fix or disable these errors so that they are not listed in the Python Console? #85

Closed reclinqs closed 3 years ago

reclinqs commented 3 years ago

screenshot of errors:

py_selenium_operadriver_console_errors

Every time i doing something with operadriver it just logs this errors. How can i get rid of them? please help

reclinqs commented 3 years ago

i found the solution i leave it here so anybody can benefit

from selenium.webdriver.opera.options import Options

OperaOptions = Options()
OperaOptions.add_argument("--log-level=3")  # This line helped to change log level to fatal errors

browser = webdriver.Opera(options=OperaOptions)