Handling UntrustedSSLCertificates using Webdriver for FF
I tried to use the below code for handling UntrustedSSLCertificates. But
getting Null pointer exception for the below lines:
profile.setAcceptUntrustedCertificates(true);
profile.setAssumeUntrustedCertificateIssuer(false);
Code: ProfilesIni allProfiles = new ProfilesIni();
System.setProperty("webdriver.firefox.profile","myprofile"); String
browserProfile = System.getProperty("webdriver.firefox.profile");
FirefoxProfile profile = allProfiles.getProfile(browserProfile);
profile.setAcceptUntrustedCertificates(true);
profile.setAssumeUntrustedCertificateIssuer(false); FirefoxDriver
webdriver = new FirefoxDriver(profile);
webdriver.get("https://www.google.com");
No comments:
Post a Comment