No need of custom Firefox|Chrome profiles to deal with "Untrusted connection" on Webdriver.
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);
driver = new FirefoxDriver(capabilities);
Note: By default 'Untrusted connection | SSL certificate' will be disabled.
we can also use below code....
ReplyDeleteFirefoxProfile profile=new FirefoxProfile();
profile.setAssumeUntrustedCertificateIssuer(false);
WebDriver driver=new FirefoxDriver(profile);
driver.get("ur required URl")
Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging.
ReplyDeleteBig Data Hadoop training in electronic city
Python Training in electronic city
DataScience with Python Training in electronic city
AWS Training in electronic city
Big Data Hadoop Training in electronic city
Devops Training in electronic city
blockchain Training in electronic city
Hibernate Training in electronic city
Data science Training in Electronic City
Selenium with python Training in Electronic City