import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.ie.InternetExplorerDriver;
import org.testng.annotations.Test;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.AfterTest;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.ie.InternetExplorerDriver;
import org.testng.annotations.Test;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.AfterTest;
public class SSLCertificateIE {
WebDriver driver;
WebDriver driver;
@Test
public void SSLIE() throws Exception {
System.setProperty("webdriver.ie.driver","E:\\lib\\IEDriverServer.exe");
driver=new InternetExplorerDriver();
driver.get("https://www.seleniumlearn.com");
driver.navigate().to("javascript:document.getElementById(‘overridelink’).click()");
}
@BeforeTest
public void beforeTest() {
driver=new FirefoxDriver();
driver.manage().window().maximize();
}
public void SSLIE() throws Exception {
System.setProperty("webdriver.ie.driver","E:\\lib\\IEDriverServer.exe");
driver=new InternetExplorerDriver();
driver.get("https://www.seleniumlearn.com");
driver.navigate().to("javascript:document.getElementById(‘overridelink’).click()");
}
@BeforeTest
public void beforeTest() {
driver=new FirefoxDriver();
driver.manage().window().maximize();
}
@AfterTest
public void afterTest() {
}
public void afterTest() {
}
}