handling https certificate on firefox using selenium webdriver – this connection is untrusted issue.
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.firefox.FirefoxProfile;
public class HandleFirefoxSecurity {
public static WebDriver driver = null;
public static void main(String[] args) {
FirefoxProfile fp = new FirefoxProfile();
fp.setAcceptUntrustedCertificates(true);
driver = new FirefoxDriver(fp);
driver.get("untrusted website url");
}
}
No images available.