I am trying to disable the output to the console for chrome. If I pass the --start-maximized option it works fine. I may have the wrong command?
DesiredCapab
When I was setting chrome up with
selenium-chrome-driver-2.48.2.jar chromedriver 2.20 selenium-java-2.48.2.jarnone of the above answers worked for me, Since I see some of the answers are a few years old, I will post what worked for me.
ChromeOptions chromeOptions = setupChromeOptions(); System.setProperty("webdriver.chrome.logfile", "\\path\\chromedriver.log"); System.setProperty("webdriver.chrome.driver", "\\path\\chromedriver.exe"); System.setProperty("webdriver.chrome.args", "--disable-logging"); System.setProperty("webdriver.chrome.silentOutput", "true"); driver = new ChromeDriver(chromeOptions);