在无头模式下停止Chrome以进行日志记录

时间:2018-03-23 12:07:41

标签: selenium selenium-chromedriver

我使用Python / Selenium / ChromeDriver / Chrome来抓取一个网站并且工作正常但是,特别是在无头模式下,我得到了很多日志,如下面的那些。我该如何阻止这些?

DevTools listening on ws://127.0.0.1...
[0323/120327.827:INFO:CONSOLE(0)] "The SSL certificate used to load... 
[0323/120330.441:WARNING:spdy_session.cc(2921)] Received HEADERS for invalid...
[0323/120353.366:WARNING:render_frame_host_impl.cc(2750)] OnDidStopLoading was called twice.
[0323/120356.054:INFO:CONSOLE(0)] "Refused to execute script from... 

0 个答案:

没有答案