Unable to launch IE browser in selenium webdriver -


i have written sample code launch ie browser , load google page.

public class sample {   public static void main(string[] args)    {     // todo auto-generated method stub     system.setproperty("webdriver.ie.driver","h:/iedriverserver.exe");     webdriver driver=new internetexplorerdriver();     driver.manage().window().maximize();     driver.manage().timeouts().implicitlywait(10,timeunit.seconds);      driver.get("http://www.google.com");   } } 

but when run script launches browser , gets closed (less 2 sec) without prompting error , script wont terminates.

this can see on console screen:

started internetexplorerdriver server (32-bit)

2.53.1.0

listening on port 46974

only local connections allowed

can 1 me on issue?

below steps worked me, hope work well:

  1. open internet explorer.
  2. navigate tools->option
  3. navigate security tab
  4. now option internet,intranet,trusted sites , restricted site enable "enable protected" mode check-box.
  5. set ie zoom level 100%
  6. click on apply , ok
  7. close ie browser , run script

Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -