Cannot open IE through selenium -


i trying run automation script in ie , have downloaded ie driver , giving in path reason not opening , getting error

org.openqa.selenium.sessionnotcreatedexception: unable create new remote session

i setting path via batch file

java -jar selenium-server-standalone-2.53.1.jar -dwebdriver.chrome.driver="chromedriver.exe" -dwebdriver.ie.driver="iedriverserver.exe" 

here code creating iedriverinstance

else if (automationconstants.browser_type.equalsignorecase("ie"))  {      browser ie = new iebrowser();      system.out.println(ie);       try      {          webdriver = new remotewebdriver(new url(seleniumproperties.gethost()), ie.getcapabilities());      } catch (malformedurlexception mue)      {          logger.error(mue);      } }  private static final string name = "ie";  private static desiredcapabilities capabilities;  static  {      capabilities = new desiredcapabilities();      capabilities = desiredcapabilities.internetexplorer();      capabilities.setplatform(platform.windows);      capabilities.setversion("11");      capabilities.setjavascriptenabled(true);      capabilities.setcapability("acceptsslcerts", true);  }  /** * */  public iebrowser()  {      super(name, capabilities); } 

please try below solution:

to work around issue, create dword value name iexplore.exe , value of 0 in following key (for 32-bit windows):

hkey_local_machine\software\microsoft\internet explorer\main\featurecontrol\feature_bfcache 

for 64-bit windows installations, following key should used:

hkey_local_machine\software\wow6432node\microsoft\internet explorer\main\featurecontrol\feature_bfcache 

Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -