關閉 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