Passing options to chrome driver selenium

后端 未结 4 1782
北恋
北恋 2020-12-31 12:56

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         


        
4条回答
  •  清酒与你
    2020-12-31 13:09

    Try "--disable-logging" instead.

    DesiredCapabilities capabilities = DesiredCapabilities.chrome();
    capabilities.setCapability("chrome.switches", Arrays.asList("--disable-logging"));
    chrome = new ChromeDriver(_chromeservice,capabilities);
    

提交回复
热议问题