Launch SELENIUM  IE (Internet Explorer) / Edge Browser:

 

1. Launch IE (Internet Explorer) Browser:

 

  • WebDrivers for different browsers like:  FirefoxDriver() for Firefox browser, ChromeDriver() for Google Chrome, SafariDriver() for Safari Browser, InternetExplorerDriver for Internet Explorer etc.
  • Webdriver is an Interface and InternetExplorerDriver() is a class which has implemented Webdriver Interface.
  • WebDriver is an interface which contains all the unimplemented common methods, which can be used for any browser e.g. getTitle(), getCurrentUrl(), get(), findElement() etc.

 

Download IEDriverServer.exe:

 

  • The Internet Explorer driver needs the installation of “webdriver.ie.driver” property with the location of IEDriverServer.exe.
  • Choose IEdriver server based on your work environment because there are two separate zip files for both 32 and 64 bit IE.
  • 32-bit driver has been recommended, which is less than errors compared to the 64-bit driver to launch IE (Internet Explorer).

 

Launching IE Explorer Browser:

 

Example Launching IE Explorer Browser:

Output: 

 

Points while working with IE browser in Selenium:

 

  • The IE browser is slower than other browsers.
  • Your browser zooming level must be set to 100% otherwise, you will get an exception.
  • You must also check your security settings in IE when you turn on the IE browser in the Selenium, all your areas should be enabled or disabled.
  • If not then you will get an exception and your test case will fail.

 

 

2. Launch Edge Browser:

 

  • Make sure you have Windows 10 on your machine and download the specified Microsoft WebDriver server version for your build.

 

Example of Launch Edge Browser: