M
M
Mikhail2018-05-20 12:07:36
Python
Mikhail, 2018-05-20 12:07:36

How to disable console logging in selenium chrome?

Basically the whole point of the question is in the title.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
4
4eloBek, 2018-09-05
@4eloBek

Maybe this will help:

# Отключает логи, кроме первой строки инициализации:
# DevTools listening on ws://127.0.0.1:63103/devtools/browser/.....
chrome_options.add_argument('--log-level=3')
# . . .
driver=webdriver.Chrome(chrome_options=chrome_options, executable_path=chrome_path)
# Затираем первую строку
os.system("cls")

C
coderisimo, 2018-05-20
@coderisimo

Have you tried it like this?
driver = webdriver.Chrome(service_log_path='/dev/null')
or
NULL on Windows

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question