Unexpected error launching Internet Explorer. IELaunchURL() returned HRESULT 80070012 with Selenium 3.13.0: IEDriverServer_x64_3.13.0Not able to launch IE browser using Selenium2 (Webdriver) with JavaHow to use DesiredCapabilities class through IEDriverServer in Selenium and PythonHow to ignore zoom settingInternet Explorer Protective mode setting and Zoom levelsUnexpected error launching Internet Explorer. IELaunchURL() returned HRESULT 80070002null pointer exception_using java selenium webdriver with TestNGNull pointer exception in selenium webdriver - TestNG - PageFactoryWhether selenium Standalone server 2.50 not support in Fire fox browser 49.0 version?Running Selenium with IEI have been trying to run selenium basic test in itelliJ and I am getting the following errorSelenium pageFactory NullPointerException for driverTestNG NullPointerException with Selenium and Page Object PatternGetting “java.lang.NullPointerException” upon execution of selenium scriptError while trying out touch actions using Appiumunable to click on paper button using selenium web driver

Is it logically or scientifically possible to artificially send energy to the body?

Is it possible to create a QR code using text?

I would say: "You are another teacher", but she is a woman and I am a man

Why is consensus so controversial in Britain?

GFCI outlets - can they be repaired? Are they really needed at the end of a circuit?

What method can I use to design a dungeon difficult enough that the PCs can't make it through without killing them?

How to compactly explain secondary and tertiary characters without resorting to stereotypes?

Could the museum Saturn V's be refitted for one more flight?

How much of data wrangling is a data scientist's job?

Is it inappropriate for a student to attend their mentor's dissertation defense?

Why didn't Miles's spider sense work before?

Why are the 737's rear doors unusable in a water landing?

If human space travel is limited by the G force vulnerability, is there a way to counter G forces?

Arrow those variables!

Can compressed videos be decoded back to their uncompresed original format?

Mathematica command that allows it to read my intentions

Why no variance term in Bayesian logistic regression?

Is there a hemisphere-neutral way of specifying a season?

Cursor Replacement for Newbies

Personal Teleportation: From Rags to Riches

Can my sorcerer use a spellbook only to collect spells and scribe scrolls, not cast?

Why would the Red Woman birth a shadow if she worshipped the Lord of the Light?

What about the virus in 12 Monkeys?

What killed these X2 caps?



Unexpected error launching Internet Explorer. IELaunchURL() returned HRESULT 80070012 with Selenium 3.13.0: IEDriverServer_x64_3.13.0


Not able to launch IE browser using Selenium2 (Webdriver) with JavaHow to use DesiredCapabilities class through IEDriverServer in Selenium and PythonHow to ignore zoom settingInternet Explorer Protective mode setting and Zoom levelsUnexpected error launching Internet Explorer. IELaunchURL() returned HRESULT 80070002null pointer exception_using java selenium webdriver with TestNGNull pointer exception in selenium webdriver - TestNG - PageFactoryWhether selenium Standalone server 2.50 not support in Fire fox browser 49.0 version?Running Selenium with IEI have been trying to run selenium basic test in itelliJ and I am getting the following errorSelenium pageFactory NullPointerException for driverTestNG NullPointerException with Selenium and Page Object PatternGetting “java.lang.NullPointerException” upon execution of selenium scriptError while trying out touch actions using Appiumunable to click on paper button using selenium web driver













0















My selenium test cases were executing just fine on internet explorer 11 browser but some thing got changed and now I'm getting the below error.



Started InternetExplorerDriver server (64-bit)
3.13.0.0
Listening on port 32274
Only local connections are allowed
[ERROR] [BaseTest] [startWebDriverClient] Could not start a new session. org.openqa.selenium.SessionNotCreatedException: Unexpected error launching Internet Explorer. IELaunchURL() returned HRESULT 80070012 ('There are no more files.') for URL 'http://localhost:32274/'
Build info: version: '3.13.0', revision: '2f0d292', time: '2018-06-25T15:24:21.231Z'
System info: host: 'LUSMIN-F00Q46Y', ip: '***.**.**.**', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '9.0.1'
Driver info: driver.version: unknown
remote stacktrace:
at com.tcs.saf.base.BaseTest.startWebDriverClient(BaseTest.java:496)
at com.tcs.saf.base.BaseTest.beforeMethod(BaseTest.java:258)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:124)
at org.testng.internal.MethodInvocationHelper.invokeMethodConsideringTimeout(MethodInvocationHelper.java:59)
at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:451)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:222)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:516)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:707)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:979)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)


Below is my code for instantiating the IE browser;



if (browserType.equalsIgnoreCase("InternetExplorer")) 
try
System.setProperty("webdriver.ie.driver", curProj+"\drivers\IEDriverServer.exe");
InternetExplorerOptions options = new InternetExplorerOptions();
options.introduceFlakinessByIgnoringSecurityDomains();
options.requireWindowFocus();
webdriver = new InternetExplorerDriver(options);
logger.info("getWebDriver - Setting webdriver.ie.driver system property as: " + System.getProperty("webdriver.ie.driver"));
catch(IllegalStateException e)
logger.error("The path to the driver executable must be set by the webdriver.ie.driver system property. ",e.fillInStackTrace());
throw new IllegalStateException("The path to the driver executable must be set by the webdriver.ie.driver system property.");











share|improve this question
























  • Did you able to launch the browser ?

    – cruisepandey
    Jul 4 '18 at 4:50











  • @cruisepandey No I'm not able to launch the browser

    – Vishvambruth JT
    Jul 4 '18 at 4:51











  • check this link : stackoverflow.com/questions/14952348/…

    – cruisepandey
    Jul 4 '18 at 4:53















0















My selenium test cases were executing just fine on internet explorer 11 browser but some thing got changed and now I'm getting the below error.



Started InternetExplorerDriver server (64-bit)
3.13.0.0
Listening on port 32274
Only local connections are allowed
[ERROR] [BaseTest] [startWebDriverClient] Could not start a new session. org.openqa.selenium.SessionNotCreatedException: Unexpected error launching Internet Explorer. IELaunchURL() returned HRESULT 80070012 ('There are no more files.') for URL 'http://localhost:32274/'
Build info: version: '3.13.0', revision: '2f0d292', time: '2018-06-25T15:24:21.231Z'
System info: host: 'LUSMIN-F00Q46Y', ip: '***.**.**.**', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '9.0.1'
Driver info: driver.version: unknown
remote stacktrace:
at com.tcs.saf.base.BaseTest.startWebDriverClient(BaseTest.java:496)
at com.tcs.saf.base.BaseTest.beforeMethod(BaseTest.java:258)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:124)
at org.testng.internal.MethodInvocationHelper.invokeMethodConsideringTimeout(MethodInvocationHelper.java:59)
at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:451)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:222)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:516)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:707)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:979)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)


Below is my code for instantiating the IE browser;



if (browserType.equalsIgnoreCase("InternetExplorer")) 
try
System.setProperty("webdriver.ie.driver", curProj+"\drivers\IEDriverServer.exe");
InternetExplorerOptions options = new InternetExplorerOptions();
options.introduceFlakinessByIgnoringSecurityDomains();
options.requireWindowFocus();
webdriver = new InternetExplorerDriver(options);
logger.info("getWebDriver - Setting webdriver.ie.driver system property as: " + System.getProperty("webdriver.ie.driver"));
catch(IllegalStateException e)
logger.error("The path to the driver executable must be set by the webdriver.ie.driver system property. ",e.fillInStackTrace());
throw new IllegalStateException("The path to the driver executable must be set by the webdriver.ie.driver system property.");











share|improve this question
























  • Did you able to launch the browser ?

    – cruisepandey
    Jul 4 '18 at 4:50











  • @cruisepandey No I'm not able to launch the browser

    – Vishvambruth JT
    Jul 4 '18 at 4:51











  • check this link : stackoverflow.com/questions/14952348/…

    – cruisepandey
    Jul 4 '18 at 4:53













0












0








0








My selenium test cases were executing just fine on internet explorer 11 browser but some thing got changed and now I'm getting the below error.



Started InternetExplorerDriver server (64-bit)
3.13.0.0
Listening on port 32274
Only local connections are allowed
[ERROR] [BaseTest] [startWebDriverClient] Could not start a new session. org.openqa.selenium.SessionNotCreatedException: Unexpected error launching Internet Explorer. IELaunchURL() returned HRESULT 80070012 ('There are no more files.') for URL 'http://localhost:32274/'
Build info: version: '3.13.0', revision: '2f0d292', time: '2018-06-25T15:24:21.231Z'
System info: host: 'LUSMIN-F00Q46Y', ip: '***.**.**.**', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '9.0.1'
Driver info: driver.version: unknown
remote stacktrace:
at com.tcs.saf.base.BaseTest.startWebDriverClient(BaseTest.java:496)
at com.tcs.saf.base.BaseTest.beforeMethod(BaseTest.java:258)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:124)
at org.testng.internal.MethodInvocationHelper.invokeMethodConsideringTimeout(MethodInvocationHelper.java:59)
at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:451)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:222)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:516)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:707)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:979)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)


Below is my code for instantiating the IE browser;



if (browserType.equalsIgnoreCase("InternetExplorer")) 
try
System.setProperty("webdriver.ie.driver", curProj+"\drivers\IEDriverServer.exe");
InternetExplorerOptions options = new InternetExplorerOptions();
options.introduceFlakinessByIgnoringSecurityDomains();
options.requireWindowFocus();
webdriver = new InternetExplorerDriver(options);
logger.info("getWebDriver - Setting webdriver.ie.driver system property as: " + System.getProperty("webdriver.ie.driver"));
catch(IllegalStateException e)
logger.error("The path to the driver executable must be set by the webdriver.ie.driver system property. ",e.fillInStackTrace());
throw new IllegalStateException("The path to the driver executable must be set by the webdriver.ie.driver system property.");











share|improve this question
















My selenium test cases were executing just fine on internet explorer 11 browser but some thing got changed and now I'm getting the below error.



Started InternetExplorerDriver server (64-bit)
3.13.0.0
Listening on port 32274
Only local connections are allowed
[ERROR] [BaseTest] [startWebDriverClient] Could not start a new session. org.openqa.selenium.SessionNotCreatedException: Unexpected error launching Internet Explorer. IELaunchURL() returned HRESULT 80070012 ('There are no more files.') for URL 'http://localhost:32274/'
Build info: version: '3.13.0', revision: '2f0d292', time: '2018-06-25T15:24:21.231Z'
System info: host: 'LUSMIN-F00Q46Y', ip: '***.**.**.**', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '9.0.1'
Driver info: driver.version: unknown
remote stacktrace:
at com.tcs.saf.base.BaseTest.startWebDriverClient(BaseTest.java:496)
at com.tcs.saf.base.BaseTest.beforeMethod(BaseTest.java:258)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:124)
at org.testng.internal.MethodInvocationHelper.invokeMethodConsideringTimeout(MethodInvocationHelper.java:59)
at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:451)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:222)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:516)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:707)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:979)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)


Below is my code for instantiating the IE browser;



if (browserType.equalsIgnoreCase("InternetExplorer")) 
try
System.setProperty("webdriver.ie.driver", curProj+"\drivers\IEDriverServer.exe");
InternetExplorerOptions options = new InternetExplorerOptions();
options.introduceFlakinessByIgnoringSecurityDomains();
options.requireWindowFocus();
webdriver = new InternetExplorerDriver(options);
logger.info("getWebDriver - Setting webdriver.ie.driver system property as: " + System.getProperty("webdriver.ie.driver"));
catch(IllegalStateException e)
logger.error("The path to the driver executable must be set by the webdriver.ie.driver system property. ",e.fillInStackTrace());
throw new IllegalStateException("The path to the driver executable must be set by the webdriver.ie.driver system property.");








selenium internet-explorer selenium-webdriver selenium-iedriver iedriverserver






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jul 4 '18 at 9:00









DebanjanB

46.4k134790




46.4k134790










asked Jul 4 '18 at 4:47









Vishvambruth JTVishvambruth JT

134516




134516












  • Did you able to launch the browser ?

    – cruisepandey
    Jul 4 '18 at 4:50











  • @cruisepandey No I'm not able to launch the browser

    – Vishvambruth JT
    Jul 4 '18 at 4:51











  • check this link : stackoverflow.com/questions/14952348/…

    – cruisepandey
    Jul 4 '18 at 4:53

















  • Did you able to launch the browser ?

    – cruisepandey
    Jul 4 '18 at 4:50











  • @cruisepandey No I'm not able to launch the browser

    – Vishvambruth JT
    Jul 4 '18 at 4:51











  • check this link : stackoverflow.com/questions/14952348/…

    – cruisepandey
    Jul 4 '18 at 4:53
















Did you able to launch the browser ?

– cruisepandey
Jul 4 '18 at 4:50





Did you able to launch the browser ?

– cruisepandey
Jul 4 '18 at 4:50













@cruisepandey No I'm not able to launch the browser

– Vishvambruth JT
Jul 4 '18 at 4:51





@cruisepandey No I'm not able to launch the browser

– Vishvambruth JT
Jul 4 '18 at 4:51













check this link : stackoverflow.com/questions/14952348/…

– cruisepandey
Jul 4 '18 at 4:53





check this link : stackoverflow.com/questions/14952348/…

– cruisepandey
Jul 4 '18 at 4:53












3 Answers
3






active

oldest

votes


















0














Please try the steps mentioned below and then try to run the automation script for IE Browser.



  1. For IE 11 only, you will need to set a registry entry on the target the computer so that the driver can maintain a connection to the instance of Internet Explorer it creates. For 32-bit Windows installations, the key you must examine in the registry editor is HKEY_LOCAL_MACHINESOFTWAREMicrosoftInternet ExplorerMainFeatureControlFEATURE_BFCACHE.


  2. For 64-bit Windows installations, the key is HKEY_LOCAL_MACHINESOFTWAREWow6432NodeMicrosoftInternet ExplorerMainFeatureControlFEATURE_BFCACHE.


Please note that the FEATURE_BFCACHE subkey may or may not be present, and should be created if it is not present. Inside this key, create a DWORD value named iexplore.exe with the value of 0.



Protected mode settings are the same for all zones.
Enhanced Protected Mode is disabled.






share|improve this answer






























    0














    As per the error log, you are using java 9. Selenium doesn't support Java 9 yet.
    Please change the settings to use the java 8 and try again. It may resolve the issue.






    share|improve this answer























    • Till today I was able to run scripts perfectly fine with the java 9.

      – Vishvambruth JT
      Jul 4 '18 at 17:09


















    0














    This error message...



    Could not start a new session. org.openqa.selenium.SessionNotCreatedException: Unexpected error launching Internet Explorer. IELaunchURL() returned HRESULT 80070012 ('There are no more files.') for URL 'http://localhost:32274/'


    ...implies that the IEDriverServer was unable to initiate/spawn a new WebBrowser i.e. IE Browser session.




    As per Unexpected error launching Internet Explorer. IELaunchURL() returned HRESULT 80070012 ('There are no more files.') @JimEvans clearly mentions:




    The IELaunchURL() function is a Windows API. The driver simply calls it. If it's returning an error, then that's where the issue is. There is no documentation provided by Microsoft about what would cause this error when using this API. If you attempt to run the test on a workstation-class OS like Windows 10, instead of on Windows Server, what happens? I realize that's not a "silver-bullet" solution, but there may be security settings at play in the server environment that are not in the workstation environment that would prevent additional file handles from being allocated in that context.





    introduceFlakinessByIgnoringSecurityDomains();



    As you have added the option introduceFlakinessByIgnoringSecurityDomains(); as per You're Doing It Wrong: IE Protected Mode and WebDriver @JimEvans again clearly mentions that adding options.introduceFlakinessByIgnoringSecurityDomains(); may get you past the initial exception and will allow the test to run in most cases without incident. However using this capability doesn't solve the underlying problem though. If a Protected Mode Boundary is crossed, very unexpected behavior including hangs, element location not working, and clicks not being propagated, could occur.




    Solution



    If you look into the Required Configuration of Internet Explorer Driver the folowing points are clearly mentioned :



    Protected Mode



    On Internet Explorer 7 or higher on Windows Vista or Windows 7, you must set the Protected Mode settings for each zone to be the same value. The value can be on or off, as long as it is the same for every zone. To set the Protected Mode settings you have to choose "Internet Options" from the "Tools" menu and then click on the Security tab. For each zone, there will be a check box at the bottom of the tab labeled Enable Protected Mode.



    ProtectedModeSettings



    Browser Zoom Level



    The browser zoom level must be set to 100% so that the native mouse events can be set to the correct coordinates.



    References



    You can find some detailed discussion in:



    • Internet Explorer Protective mode setting and Zoom levels

    • How to ignore zoom setting





    share|improve this answer

























      Your Answer






      StackExchange.ifUsing("editor", function ()
      StackExchange.using("externalEditor", function ()
      StackExchange.using("snippets", function ()
      StackExchange.snippets.init();
      );
      );
      , "code-snippets");

      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "1"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader:
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      ,
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );













      draft saved

      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f51165929%2funexpected-error-launching-internet-explorer-ielaunchurl-returned-hresult-800%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown

























      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      0














      Please try the steps mentioned below and then try to run the automation script for IE Browser.



      1. For IE 11 only, you will need to set a registry entry on the target the computer so that the driver can maintain a connection to the instance of Internet Explorer it creates. For 32-bit Windows installations, the key you must examine in the registry editor is HKEY_LOCAL_MACHINESOFTWAREMicrosoftInternet ExplorerMainFeatureControlFEATURE_BFCACHE.


      2. For 64-bit Windows installations, the key is HKEY_LOCAL_MACHINESOFTWAREWow6432NodeMicrosoftInternet ExplorerMainFeatureControlFEATURE_BFCACHE.


      Please note that the FEATURE_BFCACHE subkey may or may not be present, and should be created if it is not present. Inside this key, create a DWORD value named iexplore.exe with the value of 0.



      Protected mode settings are the same for all zones.
      Enhanced Protected Mode is disabled.






      share|improve this answer



























        0














        Please try the steps mentioned below and then try to run the automation script for IE Browser.



        1. For IE 11 only, you will need to set a registry entry on the target the computer so that the driver can maintain a connection to the instance of Internet Explorer it creates. For 32-bit Windows installations, the key you must examine in the registry editor is HKEY_LOCAL_MACHINESOFTWAREMicrosoftInternet ExplorerMainFeatureControlFEATURE_BFCACHE.


        2. For 64-bit Windows installations, the key is HKEY_LOCAL_MACHINESOFTWAREWow6432NodeMicrosoftInternet ExplorerMainFeatureControlFEATURE_BFCACHE.


        Please note that the FEATURE_BFCACHE subkey may or may not be present, and should be created if it is not present. Inside this key, create a DWORD value named iexplore.exe with the value of 0.



        Protected mode settings are the same for all zones.
        Enhanced Protected Mode is disabled.






        share|improve this answer

























          0












          0








          0







          Please try the steps mentioned below and then try to run the automation script for IE Browser.



          1. For IE 11 only, you will need to set a registry entry on the target the computer so that the driver can maintain a connection to the instance of Internet Explorer it creates. For 32-bit Windows installations, the key you must examine in the registry editor is HKEY_LOCAL_MACHINESOFTWAREMicrosoftInternet ExplorerMainFeatureControlFEATURE_BFCACHE.


          2. For 64-bit Windows installations, the key is HKEY_LOCAL_MACHINESOFTWAREWow6432NodeMicrosoftInternet ExplorerMainFeatureControlFEATURE_BFCACHE.


          Please note that the FEATURE_BFCACHE subkey may or may not be present, and should be created if it is not present. Inside this key, create a DWORD value named iexplore.exe with the value of 0.



          Protected mode settings are the same for all zones.
          Enhanced Protected Mode is disabled.






          share|improve this answer













          Please try the steps mentioned below and then try to run the automation script for IE Browser.



          1. For IE 11 only, you will need to set a registry entry on the target the computer so that the driver can maintain a connection to the instance of Internet Explorer it creates. For 32-bit Windows installations, the key you must examine in the registry editor is HKEY_LOCAL_MACHINESOFTWAREMicrosoftInternet ExplorerMainFeatureControlFEATURE_BFCACHE.


          2. For 64-bit Windows installations, the key is HKEY_LOCAL_MACHINESOFTWAREWow6432NodeMicrosoftInternet ExplorerMainFeatureControlFEATURE_BFCACHE.


          Please note that the FEATURE_BFCACHE subkey may or may not be present, and should be created if it is not present. Inside this key, create a DWORD value named iexplore.exe with the value of 0.



          Protected mode settings are the same for all zones.
          Enhanced Protected Mode is disabled.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jul 4 '18 at 5:44









          MonikaMonika

          5991310




          5991310























              0














              As per the error log, you are using java 9. Selenium doesn't support Java 9 yet.
              Please change the settings to use the java 8 and try again. It may resolve the issue.






              share|improve this answer























              • Till today I was able to run scripts perfectly fine with the java 9.

                – Vishvambruth JT
                Jul 4 '18 at 17:09















              0














              As per the error log, you are using java 9. Selenium doesn't support Java 9 yet.
              Please change the settings to use the java 8 and try again. It may resolve the issue.






              share|improve this answer























              • Till today I was able to run scripts perfectly fine with the java 9.

                – Vishvambruth JT
                Jul 4 '18 at 17:09













              0












              0








              0







              As per the error log, you are using java 9. Selenium doesn't support Java 9 yet.
              Please change the settings to use the java 8 and try again. It may resolve the issue.






              share|improve this answer













              As per the error log, you are using java 9. Selenium doesn't support Java 9 yet.
              Please change the settings to use the java 8 and try again. It may resolve the issue.







              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Jul 4 '18 at 5:47









              MurthiMurthi

              4,1311412




              4,1311412












              • Till today I was able to run scripts perfectly fine with the java 9.

                – Vishvambruth JT
                Jul 4 '18 at 17:09

















              • Till today I was able to run scripts perfectly fine with the java 9.

                – Vishvambruth JT
                Jul 4 '18 at 17:09
















              Till today I was able to run scripts perfectly fine with the java 9.

              – Vishvambruth JT
              Jul 4 '18 at 17:09





              Till today I was able to run scripts perfectly fine with the java 9.

              – Vishvambruth JT
              Jul 4 '18 at 17:09











              0














              This error message...



              Could not start a new session. org.openqa.selenium.SessionNotCreatedException: Unexpected error launching Internet Explorer. IELaunchURL() returned HRESULT 80070012 ('There are no more files.') for URL 'http://localhost:32274/'


              ...implies that the IEDriverServer was unable to initiate/spawn a new WebBrowser i.e. IE Browser session.




              As per Unexpected error launching Internet Explorer. IELaunchURL() returned HRESULT 80070012 ('There are no more files.') @JimEvans clearly mentions:




              The IELaunchURL() function is a Windows API. The driver simply calls it. If it's returning an error, then that's where the issue is. There is no documentation provided by Microsoft about what would cause this error when using this API. If you attempt to run the test on a workstation-class OS like Windows 10, instead of on Windows Server, what happens? I realize that's not a "silver-bullet" solution, but there may be security settings at play in the server environment that are not in the workstation environment that would prevent additional file handles from being allocated in that context.





              introduceFlakinessByIgnoringSecurityDomains();



              As you have added the option introduceFlakinessByIgnoringSecurityDomains(); as per You're Doing It Wrong: IE Protected Mode and WebDriver @JimEvans again clearly mentions that adding options.introduceFlakinessByIgnoringSecurityDomains(); may get you past the initial exception and will allow the test to run in most cases without incident. However using this capability doesn't solve the underlying problem though. If a Protected Mode Boundary is crossed, very unexpected behavior including hangs, element location not working, and clicks not being propagated, could occur.




              Solution



              If you look into the Required Configuration of Internet Explorer Driver the folowing points are clearly mentioned :



              Protected Mode



              On Internet Explorer 7 or higher on Windows Vista or Windows 7, you must set the Protected Mode settings for each zone to be the same value. The value can be on or off, as long as it is the same for every zone. To set the Protected Mode settings you have to choose "Internet Options" from the "Tools" menu and then click on the Security tab. For each zone, there will be a check box at the bottom of the tab labeled Enable Protected Mode.



              ProtectedModeSettings



              Browser Zoom Level



              The browser zoom level must be set to 100% so that the native mouse events can be set to the correct coordinates.



              References



              You can find some detailed discussion in:



              • Internet Explorer Protective mode setting and Zoom levels

              • How to ignore zoom setting





              share|improve this answer





























                0














                This error message...



                Could not start a new session. org.openqa.selenium.SessionNotCreatedException: Unexpected error launching Internet Explorer. IELaunchURL() returned HRESULT 80070012 ('There are no more files.') for URL 'http://localhost:32274/'


                ...implies that the IEDriverServer was unable to initiate/spawn a new WebBrowser i.e. IE Browser session.




                As per Unexpected error launching Internet Explorer. IELaunchURL() returned HRESULT 80070012 ('There are no more files.') @JimEvans clearly mentions:




                The IELaunchURL() function is a Windows API. The driver simply calls it. If it's returning an error, then that's where the issue is. There is no documentation provided by Microsoft about what would cause this error when using this API. If you attempt to run the test on a workstation-class OS like Windows 10, instead of on Windows Server, what happens? I realize that's not a "silver-bullet" solution, but there may be security settings at play in the server environment that are not in the workstation environment that would prevent additional file handles from being allocated in that context.





                introduceFlakinessByIgnoringSecurityDomains();



                As you have added the option introduceFlakinessByIgnoringSecurityDomains(); as per You're Doing It Wrong: IE Protected Mode and WebDriver @JimEvans again clearly mentions that adding options.introduceFlakinessByIgnoringSecurityDomains(); may get you past the initial exception and will allow the test to run in most cases without incident. However using this capability doesn't solve the underlying problem though. If a Protected Mode Boundary is crossed, very unexpected behavior including hangs, element location not working, and clicks not being propagated, could occur.




                Solution



                If you look into the Required Configuration of Internet Explorer Driver the folowing points are clearly mentioned :



                Protected Mode



                On Internet Explorer 7 or higher on Windows Vista or Windows 7, you must set the Protected Mode settings for each zone to be the same value. The value can be on or off, as long as it is the same for every zone. To set the Protected Mode settings you have to choose "Internet Options" from the "Tools" menu and then click on the Security tab. For each zone, there will be a check box at the bottom of the tab labeled Enable Protected Mode.



                ProtectedModeSettings



                Browser Zoom Level



                The browser zoom level must be set to 100% so that the native mouse events can be set to the correct coordinates.



                References



                You can find some detailed discussion in:



                • Internet Explorer Protective mode setting and Zoom levels

                • How to ignore zoom setting





                share|improve this answer



























                  0












                  0








                  0







                  This error message...



                  Could not start a new session. org.openqa.selenium.SessionNotCreatedException: Unexpected error launching Internet Explorer. IELaunchURL() returned HRESULT 80070012 ('There are no more files.') for URL 'http://localhost:32274/'


                  ...implies that the IEDriverServer was unable to initiate/spawn a new WebBrowser i.e. IE Browser session.




                  As per Unexpected error launching Internet Explorer. IELaunchURL() returned HRESULT 80070012 ('There are no more files.') @JimEvans clearly mentions:




                  The IELaunchURL() function is a Windows API. The driver simply calls it. If it's returning an error, then that's where the issue is. There is no documentation provided by Microsoft about what would cause this error when using this API. If you attempt to run the test on a workstation-class OS like Windows 10, instead of on Windows Server, what happens? I realize that's not a "silver-bullet" solution, but there may be security settings at play in the server environment that are not in the workstation environment that would prevent additional file handles from being allocated in that context.





                  introduceFlakinessByIgnoringSecurityDomains();



                  As you have added the option introduceFlakinessByIgnoringSecurityDomains(); as per You're Doing It Wrong: IE Protected Mode and WebDriver @JimEvans again clearly mentions that adding options.introduceFlakinessByIgnoringSecurityDomains(); may get you past the initial exception and will allow the test to run in most cases without incident. However using this capability doesn't solve the underlying problem though. If a Protected Mode Boundary is crossed, very unexpected behavior including hangs, element location not working, and clicks not being propagated, could occur.




                  Solution



                  If you look into the Required Configuration of Internet Explorer Driver the folowing points are clearly mentioned :



                  Protected Mode



                  On Internet Explorer 7 or higher on Windows Vista or Windows 7, you must set the Protected Mode settings for each zone to be the same value. The value can be on or off, as long as it is the same for every zone. To set the Protected Mode settings you have to choose "Internet Options" from the "Tools" menu and then click on the Security tab. For each zone, there will be a check box at the bottom of the tab labeled Enable Protected Mode.



                  ProtectedModeSettings



                  Browser Zoom Level



                  The browser zoom level must be set to 100% so that the native mouse events can be set to the correct coordinates.



                  References



                  You can find some detailed discussion in:



                  • Internet Explorer Protective mode setting and Zoom levels

                  • How to ignore zoom setting





                  share|improve this answer















                  This error message...



                  Could not start a new session. org.openqa.selenium.SessionNotCreatedException: Unexpected error launching Internet Explorer. IELaunchURL() returned HRESULT 80070012 ('There are no more files.') for URL 'http://localhost:32274/'


                  ...implies that the IEDriverServer was unable to initiate/spawn a new WebBrowser i.e. IE Browser session.




                  As per Unexpected error launching Internet Explorer. IELaunchURL() returned HRESULT 80070012 ('There are no more files.') @JimEvans clearly mentions:




                  The IELaunchURL() function is a Windows API. The driver simply calls it. If it's returning an error, then that's where the issue is. There is no documentation provided by Microsoft about what would cause this error when using this API. If you attempt to run the test on a workstation-class OS like Windows 10, instead of on Windows Server, what happens? I realize that's not a "silver-bullet" solution, but there may be security settings at play in the server environment that are not in the workstation environment that would prevent additional file handles from being allocated in that context.





                  introduceFlakinessByIgnoringSecurityDomains();



                  As you have added the option introduceFlakinessByIgnoringSecurityDomains(); as per You're Doing It Wrong: IE Protected Mode and WebDriver @JimEvans again clearly mentions that adding options.introduceFlakinessByIgnoringSecurityDomains(); may get you past the initial exception and will allow the test to run in most cases without incident. However using this capability doesn't solve the underlying problem though. If a Protected Mode Boundary is crossed, very unexpected behavior including hangs, element location not working, and clicks not being propagated, could occur.




                  Solution



                  If you look into the Required Configuration of Internet Explorer Driver the folowing points are clearly mentioned :



                  Protected Mode



                  On Internet Explorer 7 or higher on Windows Vista or Windows 7, you must set the Protected Mode settings for each zone to be the same value. The value can be on or off, as long as it is the same for every zone. To set the Protected Mode settings you have to choose "Internet Options" from the "Tools" menu and then click on the Security tab. For each zone, there will be a check box at the bottom of the tab labeled Enable Protected Mode.



                  ProtectedModeSettings



                  Browser Zoom Level



                  The browser zoom level must be set to 100% so that the native mouse events can be set to the correct coordinates.



                  References



                  You can find some detailed discussion in:



                  • Internet Explorer Protective mode setting and Zoom levels

                  • How to ignore zoom setting






                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Mar 21 at 21:07

























                  answered Jul 4 '18 at 8:57









                  DebanjanBDebanjanB

                  46.4k134790




                  46.4k134790



























                      draft saved

                      draft discarded
















































                      Thanks for contributing an answer to Stack Overflow!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid


                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.

                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f51165929%2funexpected-error-launching-internet-explorer-ielaunchurl-returned-hresult-800%23new-answer', 'question_page');

                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

                      Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

                      Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript