Java code to stop seeing detailed logs in ChromeDriver?

不羁岁月 提交于 2021-02-11 12:32:23

问题


Can someone share a code which stops ChromeDriver to display logs in console. These red color logs are taking lots of space.

Thanks


回答1:


I hope the code below helps you to get rid of those red-coloured 'logs':

System.setProperty("webdriver.chrome.silentOutput", "true");        
java.util.logging.Logger.getLogger("org.openqa.selenium").setLevel(Level.SEVERE);


来源:https://stackoverflow.com/questions/61253792/java-code-to-stop-seeing-detailed-logs-in-chromedriver

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