Navigation Menu

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

"Click of death" in IEDriver crashes the Selenium server #6437

Closed
lukeis opened this issue Mar 4, 2016 · 16 comments
Closed

"Click of death" in IEDriver crashes the Selenium server #6437

lukeis opened this issue Mar 4, 2016 · 16 comments

Comments

@lukeis
Copy link
Member

lukeis commented Mar 4, 2016

Originally reported on Google Code with ID 6437

Hello guys, I'm going through this weird Selenium behaviour in some of my test cases,
and I'm thinking it's a bug in IEDriver.

After the "click" action, the server crashes.
Could not reproduce it using ChromeDriver. Don't know about other drivers.

Below is a simple test that triggers the bug:

----

DesiredCapabilities dc = DesiredCapabilities.internetExplorer();
dc.setCapability("logFile", "IEDriverServer.log");
dc.setCapability("logLevel", "TRACE");
driver = new InternetExplorerDriver(dc);

driver.get("https://dl.dropboxusercontent.com/u/53423441/test_page.html");
driver.findElement(By.xpath("//form/a")).click();
// anything after this ponit generates an error 

----

I'm leaving the test page available for as long as possible, but in case it vanishes
here it goes:

<HTML>
 <HEAD>
  <TITLE>Test Page</TITLE>
  <SCRIPT TYPE="text/javascript">
     function test_script(){
          var form = document.getElementById("test_form");
          form.submit();
     }
  </SCRIPT>
 </HEAD>
 <BODY>
  <FORM ID="test_form" ACTION="test_page.html" METHOD="post" TARGET="testWindow">
   <A HREF="javascript:test_script();">Click here</A>
  </FORM>
 </BODY>
</HTML>

What steps will reproduce the problem?
1. Run the test provided above.

What is the expected output? What do you see instead?
The expected was to continue runninng the test as normal, but instead the Selenium
server crashes.


Selenium version: IEDriver 2.37.0 32-bit
OS: Windows 8 64-bit
Browser: Internet Explorer
Browser version: 10


The attached file is the trace log.


Reported by royzrj on 2013-10-21 21:11:25


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

lukeis commented Mar 4, 2016

Reported by barancev on 2013-10-21 21:14:19

  • Labels added: Browser-IE

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

This test case does not reproduce for me using IE 10. Looking at the log, it looks a
lot like you're crossing a Protected Mode boundary. Are the Protected Mode settings
for all zones set to the same value?

Reported by james.h.evans.jr on 2013-10-21 21:46:54

  • Status changed: NeedsClarification
  • Labels removed: Status-Untriaged

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

I can't reproduce the issue with the suggested sample page and the scenario on IE10
win7x64 too. What do you mean by "anything" that "generates errors"? And what error
does it generate?

Reported by barancev on 2013-10-21 22:01:10

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

@james Yes, Protected Mode is set to the same value (enabled) for all zones. But from
the log, doesn't it seems strange it just stops at the AttachEvents method? After that,
any command sent to the server throws a "UnreachableBrowserException".

@barancev I'm sorry, forgot to attach the errors generated.

org.openqa.selenium.remote.UnreachableBrowserException: Error communicating with the
remote browser. It may have died.
Build info: version: '2.37.0', revision: 'a7c61cbd68657e133ae96672cf995890bad2ee42',
time: '2013-10-18 09:51:02'
System info: host: 'xxxxxx', ip: 'xxx.xxx.xxx.xxx', os.name: 'Windows 8', os.arch:
'x86', os.version: '6.2', java.version: '1.7.0_21'
Driver info: driver.version: RemoteWebDriver
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:548)
    at org.openqa.selenium.remote.RemoteWebElement.execute(RemoteWebElement.java:268)
    at org.openqa.selenium.remote.RemoteWebElement.click(RemoteWebElement.java:79)
    at com.test$ThreadTest.run(IETest.java:572)
    at java.lang.Thread.run(Thread.java:722)
Caused by: org.openqa.selenium.WebDriverException: java.net.SocketException: Connection
reset
Build info: version: '2.37.0', revision: 'a7c61cbd68657e133ae96672cf995890bad2ee42',
time: '2013-10-18 09:51:02'
System info: host: 'LG_Z355', ip: '192.168.1.2', os.name: 'Windows 8', os.arch: 'x86',
os.version: '6.2', java.version: '1.7.0_21'
Driver info: driver.version: RemoteWebDriver
    at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:75)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:527)
    ... 4 more
Caused by: java.net.SocketException: Connection reset
    at java.net.SocketInputStream.read(SocketInputStream.java:189)
    at java.net.SocketInputStream.read(SocketInputStream.java:121)
    at org.apache.http.impl.io.AbstractSessionInputBuffer.fillBuffer(AbstractSessionInputBuffer.java:160)
    at org.apache.http.impl.io.SocketInputBuffer.fillBuffer(SocketInputBuffer.java:84)
    at org.apache.http.impl.io.AbstractSessionInputBuffer.readLine(AbstractSessionInputBuffer.java:273)
    at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:140)
    at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:57)
    at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:260)
    at org.apache.http.impl.AbstractHttpClientConnection.receiveResponseHeader(AbstractHttpClientConnection.java:283)
    at org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader(DefaultClientConnection.java:251)
    at org.apache.http.impl.conn.AbstractClientConnAdapter.receiveResponseHeader(AbstractClientConnAdapter.java:223)
    at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:271)
    at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:123)
    at org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:682)
    at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:486)
    at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:863)
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72)
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:57)
    at org.openqa.selenium.remote.HttpCommandExecutor.fallBackExecute(HttpCommandExecutor.java:319)
    at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:298)
    at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:66)
    ... 5 more

Reported by royzrj on 2013-10-22 12:36:45

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

It's been a few days, any other thoughts, anyone? Unfortunately I don't have access
to the Visual Studio version needed to compile the IEDriver executable, or else I'd
be debugging it for a while now =(

Reported by royzrj on 2013-11-06 20:43:46

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Hello guys, I'm back here to ask you to please look at this question as I'm still having
the same problem, even using different versions of IE and Selenium.

I'm attaching here the IEDriverServer 2.39.0.0 trace log, an example program and the
errors output from this example.

Selenium version: IEDriver 2.39.0 32-bit
OS: Windows 8 64-bit
Browser: Internet Explorer
Browser version: 11

Thank you very much for looking into this.

Reported by royzrj on 2013-12-27 19:15:24


- _Attachment: [IEDriverServer.log](https://storage.googleapis.com/google-code-attachments/selenium/issue-6437/comment-6/IEDriverServer.log)_ - _Attachment: [IETest.java](https://storage.googleapis.com/google-code-attachments/selenium/issue-6437/comment-6/IETest.java)_ - _Attachment: [IETest.output](https://storage.googleapis.com/google-code-attachments/selenium/issue-6437/comment-6/IETest.output)_

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

You can't use IE11. Full stop. IE11 causes this exact error. It's a known issue with
IE11, caused by the browser. There's nothing the IE driver can do about it yet, and
there's no known workaround. We have been in touch with the IE team at Microsoft about
the issue, but we do not have a resolution yet.

Reported by james.h.evans.jr on 2013-12-27 19:37:31

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Really? Hmmm I'll try and test it with IE9 then. Thanks for the info!
Strange thing is I had the exact same problem with IE10... but maybe the issue you
mentioned started there, right?
Anyway, I'll go try and test it right now. Thx again!

Reported by royzrj on 2013-12-27 19:43:39

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Hi Roy, 

Were you able to figure out how to fix this issue? I am experiencing the same behavior
with IE8, IE9, IE10 and IE11. Please let me know if you found anything.

Thanks,
Balaji

Reported by balaji.gandhi on 2015-01-21 02:00:15

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Hi Balaji, 

No, I haven't found a fix for it yet. As a matter of fact I dropped the project because
of it, so, yeah, wish you luck. 

BR, 
Roy

Reported by royzrj on 2015-01-21 02:07:50

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

It is at this point that I must remind everyone that it is exceedingly difficult to
fix what one cannot reproduce. 

Reported by james.h.evans.jr on 2015-01-21 06:04:32

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

James, thanks for the hard work you've been doing with WebDriver.
Maybe you should close this issue and let Balaji open his own, there's a chance his
problem is not related to mine as I did not read anything of him saying he used the
test case I posted to reproduce the problem.
BR

Reported by royzrj on 2015-01-21 11:55:55

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Ok guys. Created a new issue for this - https://code.google.com/p/selenium/issues/detail?id=8419.

Reported by balaji.gandhi on 2015-01-21 21:00:04

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Jim/All, any thots about why this might be happening? Your input might help me look
into the IEDriver source code to figure out the issue.

Reported by balaji.gandhi on 2015-01-23 05:50:33

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Closing the issue as there is no known way to reproduce it.

Reported by barancev on 2015-03-16 06:36:19

  • Status changed: Invalid

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Reported by luke.semerau on 2015-09-17 18:18:07

  • Labels added: Restrict-AddIssueComment-Commit

@lukeis lukeis closed this as completed Mar 4, 2016
@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