[英]Selenium Chromedriver disable log on Windows
I am running selenium via python 3 with the chromedriver browser on windows 10 . 我在Windows 10上使用chromedriver浏览器通过python 3运行selenium 。
The program is very active and should run constantly. 该计划非常活跃,应该不断运行。 Means: lots of logging going on. 意思是:正在进行大量的日志记录。
Problem : the crhomedriver logs get way too long after a few hours, and windows tends to crash. 问题 :crhomedriver日志在几个小时后变得太长,而且窗户往往会崩溃。
Everything is working fine, the logs are just minor issues about which I do not really care. 一切都很好,日志只是我不太关心的小问题。
Question : 问题 :
How may I disable the chromedriver logs? 我怎样才能禁用chromedriver日志?
Notes : 备注 :
Try this, not sure it will work. 试试这个,不确定它会起作用。 Pass the options to your chromedriver 将选项传递给您的chromedriver
from selenium.webdriver.chrome.options import Options
options = Options()
options.add_argument('--disable-logging')
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.