Java Selenium Chrome driver - Disable logging -


i'm working selenium chrome driver , want disable logging, i'v tried existing solutions including :

chromeoptions chromeoptions = new chromeoptions();     chromeoptions.addarguments("--log-level=3"); 

and

desiredcapabilities capabilities = desiredcapabilities.chrome();         capabilities.setcapability("chrome.verbose", false); 

but none worked me, still having info , warning log showing :

starting chromedriver 2.25.426924 (649f9b868f6783ec9de71c123212b908bf3b232e) on port 17965 local connections allowed. jul 25, 2017 7:01:16 pm org.openqa.selenium.remote.protocolhandshake createsession info: attempting bi-dialect session, assuming postel's law holds true on remote end jul 25, 2017 7:01:16 pm org.openqa.selenium.remote.protocolhandshake createsession info: detected dialect: oss

this have been doing , has worked far me.

chromeoptions chromeoptions = new chromeoptions(); chromeoptions.addargument("--log-level=3"); chromeoptions.addargument("--silent"); webdriver driver = new chromedriver(chromeoptions); 

Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -