Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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)

like image 301
Acamori Avatar asked Nov 26 '25 09:11

Acamori


1 Answers

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

like image 199
Manmohan_singh Avatar answered Nov 27 '25 21:11

Manmohan_singh



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!