package com.seleniumWebdriver;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.firefox.FirefoxProfile;
/**
* @Blog Name : Selenium Code Example
* @author Deepak Gupta
* @Created Date 4-08-2017
*
*/
public class FirefoxUntrustedConnection {
public static void main(String[] args) {
FirefoxProfile prof = new FirefoxProfile();
prof.setAssumeUntrustedCertificateIssuer(true);
prof.setAcceptUntrustedCertificates(true);
System.setProperty("webdriver.gecko.driver", "./Browser_Driver/geckodriver.exe");
WebDriver driver = new FirefoxDriver(prof);
driver.get("https://www.google.co.in/");
}
}
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.firefox.FirefoxProfile;
/**
* @Blog Name : Selenium Code Example
* @author Deepak Gupta
* @Created Date 4-08-2017
*
*/
public class FirefoxUntrustedConnection {
public static void main(String[] args) {
FirefoxProfile prof = new FirefoxProfile();
prof.setAssumeUntrustedCertificateIssuer(true);
prof.setAcceptUntrustedCertificates(true);
System.setProperty("webdriver.gecko.driver", "./Browser_Driver/geckodriver.exe");
WebDriver driver = new FirefoxDriver(prof);
driver.get("https://www.google.co.in/");
}
}
No comments:
Post a Comment