interdrp
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.

 

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-10-19
  • 2022-12-23
  • 2021-06-11
  • 2021-09-18
  • 2021-12-01
  • 2022-12-23
猜你喜欢
  • 2021-07-29
  • 2021-12-27
  • 2021-05-05
  • 2022-12-23
  • 2021-09-18
  • 2021-07-20
  • 2022-12-23
相关资源
相似解决方案