.
Question : How To Launch Internet Explorer Browser in Selenium Webdriver ?
Answer :
Step-1 First Download the IE driver exe from the official Website
Step-2 Save the exe file in you system .
Step-3 Set the property.
Syntax
Basic syntax to launch IE browser in selenium given below
System.setProperty("webdriver.ie.driver", "IEDriverServer.exe path");
Example
Example to launch internet explorer in selenium webdriver given below
System.setProperty("webdriver.ie.driver","D:/Sandeep/Soft/IEDriverServer.exe");
Selenium Code To Launch Internet Explore browser Using Java
Code:
public class IEBrowserLaunching
{
public static void main(String[] args)
{
System.setProperty("webdriver.ie.driver", "D:/Sandeep/Soft/IEDriverServer.exe");
WebDriver driver=new InernetExplorerDriver();
driver.get("http://www.facebook.com");
driver.manage().window().maximize();
driver.quit();
}
}
In this tutorial we learn how to Launch Internet Explorer Browser in selenium webdriver with various types .Hope this tutorial helpful for you 😊
Thanks & Regards
Sandeep Yadav
Related Post :
Important Tags :
how to launch IE browser in selenium , how to launch internet explorer browser in selenium webdriver using java , Launching IE Browser In Selenium webdriver ,
Answer :
Step-1 First Download the IE driver exe from the official Website
Step-2 Save the exe file in you system .
Step-3 Set the property.
Syntax
Basic syntax to launch IE browser in selenium given below
System.setProperty("webdriver.ie.driver", "IEDriverServer.exe path");
Example
Example to launch internet explorer in selenium webdriver given below
System.setProperty("webdriver.ie.driver","D:/Sandeep/Soft/IEDriverServer.exe");
Selenium Code To Launch Internet Explore browser Using Java
Code:
public class IEBrowserLaunching
{
public static void main(String[] args)
{
System.setProperty("webdriver.ie.driver", "D:/Sandeep/Soft/IEDriverServer.exe");
WebDriver driver=new InernetExplorerDriver();
driver.get("http://www.facebook.com");
driver.manage().window().maximize();
driver.quit();
}
}
In this tutorial we learn how to Launch Internet Explorer Browser in selenium webdriver with various types .Hope this tutorial helpful for you 😊
Thanks & Regards
Sandeep Yadav
Related Post :
- How to launch chrome browser in selenium webdriver ?
- How to launch firefox browser in selenium webdriver ?
- How to enter URL in selenium webdriver ?
- How ro Refresh webpage in selenium webdriver ?
Important Tags :
how to launch IE browser in selenium , how to launch internet explorer browser in selenium webdriver using java , Launching IE Browser In Selenium webdriver ,
How To Launch Internet Explorer Browser in Selenium Webdriver |
0 Comments