Unable to launch IE browser in selenium webdriver Unable to launch IE browser in selenium webdriver selenium selenium

Unable to launch IE browser in selenium webdriver


Below steps are worked for me, Hope this will work for you as well:

  1. Open internet explorer.
  2. Navigate to Tools->Option
  3. Navigate to Security Tab
  4. Now for all option like Internet,Intranet,Trusted Sites andRestricted Site enable "Enable Protected" mode check-box.
  5. Set IE zoom level to 100%
  6. Click on Apply and OK
  7. Close the IE browser and run your script


To execute your code in IE need to set some security setting for your browser:1) open IE Goto tools-- select internet options-- select security Set all zones (Internet , local internet,Trusted sites,Restricted sites) to the same protected mode(enabled or disabled is no matter)2) set the zoom to 100% : In iE browser at top right hand side corner select settings symbol. select zoom . set zoom to 100% (what ever you want like 125,200 etc) close IE. 3) If you want to see the zoom to display on the page: On the top right hand side of the browser just right click you will get some options , enable the status bar. Then you will be able to see the zoom at the rightside bottom of the page.


try:

public static void main(String[] args) {    try    {       string path = @"H:\IEDriverServer.exe";       WebDriver driver = new InternetExplorerDriver(path);       driver.manage().timeouts().implicitlyWait(10,TimeUnit.SECONDS);       driver.manage().window().maximize();       driver.get("http://www.google.com");    }    catch(Exception ex)    {    }}