How to execute Selenium Chrome WebDriver in silent mode?

前端 未结 8 1614
广开言路
广开言路 2020-11-30 06:54

When using Chrome Selenium-WebDriver, it will output diagnostic output when the servers are started:

Started ChromeDriver (v2.0) on port 9515

8条回答
  •  没有蜡笔的小新
    2020-11-30 07:21

    For me the only thing that worked for

       selenium-chrome-driver-2.48.2.jar
       chromedriver 2.20
       selenium-java-2.48.2.jar
    

    was

       ChromeOptions options = new ChromeOptions();
       System.setProperty("webdriver.chrome.args", "--disable-logging");
       System.setProperty("webdriver.chrome.silentOutput", "true");
       driver = new ChromeDriver(options);
    

提交回复
热议问题