Tuesday, 9 September 2014

Chrome Certificate Problem --ignore-certificate-errors

 DesiredCapabilities capabilities = DesiredCapabilities.chrome();  
                  capabilities.setCapability("chrome.switches", Arrays.asList("--incognito"));  
                  ChromeOptions options = new ChromeOptions();  
                  options.addArguments("--test-type");  
                  capabilities.setCapability("chrome.binary", "C://webdrivers//chromedriver//chromedriver.exe");  
                  capabilities.setCapability(ChromeOptions.CAPABILITY, options);  
                  driver = new ChromeDriver(capabilities);  


This code fix your problem

Have nice day