Skip to content
This repository has been archived by the owner on Nov 29, 2018. It is now read-only.

IELaunchURL() returned HRESULT 80070057 #7045

Open
lukeis opened this issue Mar 4, 2016 · 6 comments
Open

IELaunchURL() returned HRESULT 80070057 #7045

lukeis opened this issue Mar 4, 2016 · 6 comments

Comments

@lukeis
Copy link
Member

lukeis commented Mar 4, 2016

Originally reported on Google Code with ID 7045

I often encounter "IELaunchURL() returned HRESULT 80070057" at the beginning of my test
script running.
It occurs at
WebDriver driver = new RemoteWebDriver(new URL("http://127.0.0.1:4444/wd/hub"), ie);
The IEDriverServer.exe launches sucessfully(I can see it in the task manager), and
I only can see the page "This is the initial start page for the WebDriver server."

What steps will reproduce the problem?
1.just start testing

What is the expected output? What do you see instead?
org.openqa.selenium.WebDriverException: Unexpected error launching Internet Expl
orer. IELaunchURL() returned HRESULT 80070057 ('E_INVALIDARG') for URL 'http://l
ocalhost:21512/' (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 1.19 seconds
Build info: version: '2.39.0', revision: 'ff23eac', time: '2013-12-16 16:11:15'
System info: host: 'ULIC-luanfei', ip: '10.53.36.7', os.name: 'Windows XP', os.a
rch: 'x86', os.version: '5.1', java.version: '1.6.0_18'
Driver info: org.openqa.selenium.ie.InternetExplorerDriver
Command duration or timeout: 1.28 seconds
Build info: version: '2.39.0', revision: 'ff23eac', time: '2013-12-16 16:12:12'
System info: host: 'myname', ip: 'XX.XX.XX.X', os.name: 'Windows XP', os.a
rch: 'x86', os.version: '5.1', java.version: '1.6.0_18'
Driver info: org.openqa.selenium.remote.RemoteWebDriver

Selenium version:2.39.0
OS:windows xp
Browser:IE
Browser version:8

I also tried using
File f = new File("D:\\selenium-2.39.0\\IEDriverServer.exe");
System.setProperty("webdriver.ie.driver", f.getAbsolutePath());
WebDriver driver = new InternetExplorerDriver(5555);
but the situation is the same.

This problem does not occur every time.

I've tried to search the solution, but I find this problem is really rare, so I guess
perhaps it's my environment's problem. I'm trying to use some other's computer to run
selenium2 and my test script. But I still want to ask does anyone know what will be
the probable reason, or how can I debug this issue deeper? Thanks a lot.

The attach file is the full log of selenium-server-standalone-2.39.0.jar in debug model.

Reported by little.flyfly@yahoo.com on 2014-02-28 09:37:31


- _Attachment: [fullLog.log](https://storage.googleapis.com/google-code-attachments/selenium/issue-7045/comment-0/fullLog.log)_
@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Reported by barancev on 2014-03-04 22:47:52

  • Labels added: Browser-IE

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

I don't know why this problem happened now, but I know how to avoid it.
Start script like this
DesiredCapabilities ie = DesiredCapabilities.internetExplorer();
//this is the importance
ie.setCapability(InternetExplorerDriver.FORCE_CREATE_PROCESS, true);
driver = new RemoteWebDriver(new URL("http://127.0.0.1:4444/wd/hub"), ie);

It seems like program will start up IE by command line instead of IELaunchURL(). Perhaps
there are some bugs about IELaunchURL() in IEDriverServer.exe, perhaps...

And using IE above version 8 is necessary.

Reported by little.flyfly@yahoo.com on 2014-06-17 07:13:04

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

I can reproduce this error when my machine is 64 bit but I'm using IEDriverServer.exe
in 32 bit. 

Reported by mariusz.skoczylas on 2015-03-11 15:22:54

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

I am seeing this very issue using IE 11 and the latest IE web driver 2.45.0.0. Please
let me know if there is any additional information that I can provide.

Reported by fizgiggsr on 2015-04-16 23:57:29

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

I was seeing this issue and was able to fix it by making a registry setting TabProcGrowth
D-word value set to 0. http://www.ie8blog.com/2009/09/22/setting-tabprocgrowth-to-a-value-of-zero-disables-protected-mode-for-ie-security-zones/

Reported by eymemathew on 2015-08-24 18:51:31

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Reported by luke.semerau on 2015-09-17 17:46:33

  • Labels added: Restrict-AddIssueComment-Commit

@SeleniumHQ SeleniumHQ locked and limited conversation to collaborators Mar 4, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant