How disable debuger on chrome webdriver in Python 3.x?
Asked Answered
H

2

3

anybody know how to disable a debugger/logging in chrome webdriver in Python 3.6 ?

enter image description here

I'm trying following code and it isn't working.

chrome_options = webdriver.ChromeOptions()
chrome_options.add_argument("--disable-infobars")
chrome_options.add_argument("--disable-logging")
chrome_options.add_argument("--disable-login-animations")
chrome_options.add_argument("--disable-notifications")
chrome_options.add_argument("--disable-default-apps")

driver = webdriver.Chrome(chrome_options=chrome_options, service_log_path='NUL', service_args=["--verbose", r"--log-path=D:\qc1.log"])

Python ver.: 3.6.1

Chrome Browser ver.: 62.0.3202.94 (64bit)

Webdriver ver.: 2.33

OS: Win10 (64bit)

Hirz answered 5/12, 2017 at 8:29 Comment(0)
P
5

add this chrome_options.add_argument("--log-level=3") to shut the logging.

Philia answered 5/12, 2017 at 9:7 Comment(0)
A
0

In C# this didn't work for me anymore. In Selenium 4 you can configure now the LogLevel by a SetLevel call, see https://www.selenium.dev/documentation/webdriver/troubleshooting/logging

Absorption answered 11/8 at 12:29 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.