关闭 ChromeDriver was started successfully 提示信息


System.setProperty("webdriver.chrome.silentOutput", "true");
Logger.getLogger("org.openqa.selenium").setLevel(Level.OFF);

设置之后还是没有关闭 ChromeDriver was started successfully 提示信息

源代码中 有一句 printf("%s was started successfully.\n", kChromeDriverProductShortName);

好像是标准输出没有提供关闭的地方

I have found that the "ChromeDriver was started successfully" message comes from this line at the ChromeDriver binary:

printf("%s was started successfully.\n", kChromeDriverProductShortName);

Maybe this printf statement that ends in the standard output, can be redirected somehow.

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM