有人知道如何在Python 3.6中禁用Chrome WebDriver中的调试器/日志记录吗?
我尝试了下面的代码,但它并不起作用。
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版本: 3.6.1
Chrome浏览器版本: 62.0.3202.94 (64位)
Webdriver版本: 2.33
操作系统: Win10 (64位)