Chrome Console logs not printing Violations

懵懂的女人 提交于 2019-12-11 14:19:06

问题


I am using Selenium with Chrome Driver to crawl websites. Need to get everything that gets printed on the chrome console.

Ex: I need Warning and Violation from console below

chrome_debug.log doesn't contain Violations.

I have tried passing arg "--verbose", "--v0", "--v1" to chrome driver, I have also tried setting LoggingPreferences loggingPreferences.enable(LogType.BROWSER, Level.ALL) with no luck. What am I missing here?

来源:https://stackoverflow.com/questions/48579511/chrome-console-logs-not-printing-violations

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!