I have been using selenium in python now for over 2 years but i experienced a problem suddenly (I am using chromedriver) which has never happened before. I can’t do anything against it. It always shows a debug or something while just running it normally no matter what happens Here is a picture of it. Does anybody know, how i can turn that kind of debug off?
Advertisement
Answer
Question : Does anybody know, how i can turn that kind of debug off?
You can set log level to minimum while launching the driver using the following options
JavaScript
x
5
1
from selenium.webdriver.chrome.options import Options
2
3
chrome_options = Options()
4
chrome_options.add_argument('--log-level=3')
5
log-level:
JavaScript
1
5
1
INFO = 0,
2
WARNING = 1,
3
LOG_ERROR = 2,
4
LOG_FATAL = 3.
5
default is 0.