В моем автоматическом c тесте chrome создает много журналов. Я перепробовал много способов, ни один не помог. В настоящее время у меня есть это:
System.setProperty("webdriver.chrome.silentOutput", "true");
ChromeOptions options = new ChromeOptions();
options.addArguments(
"--disable-logging",
"--log-level=OFF",
"--silent"
);
System.setProperty(browsers.getConfigInfo(),browsers.getDriverPath());
WebDriver driver = new ChromeDriver(options);
, но все еще вижу это:
10:59:11.456 [Forwarding isElementDisplayed on session b316a03b20f1dc9b067b1f59ad01c1ed to remote] DEBUG org.apache.http.headers - http-outgoing-0 >> Cache-Control: no-cache
10:59:11.456 [Forwarding isElementDisplayed on session b316a03b20f1dc9b067b1f59ad01c1ed to remote] DEBUG org.apache.http.headers - http-outgoing-0 >> Host: localhost:18288
10:59:11.456 [Forwarding isElementDisplayed on session b316a03b20f1dc9b067b1f59ad01c1ed to remote] DEBUG org.apache.http.headers - http-outgoing-0 >> Connection: Keep-Alive
10:59:11.456 [Forwarding isElementDisplayed on session b316a03b20f1dc9b067b1f59ad01c1ed to remote] DEBUG org.apache.http.headers - http-outgoing-0 >> User-Agent: Apache-HttpClient/4.3.5 (java 1.5)
10:59:11.456 [Forwarding isElementDisplayed on session b316a03b20f1dc9b067b1f59ad01c1ed to remote] DEBUG org.apache.http.headers - http-outgoing-0 >> Accept-Encoding: gzip,deflate
Любые идеи; /