Internet explorer hangs after clicking <a> that returns a file to download #448

93 views
Skip to first unread message

Always a student

unread,
Sep 27, 2017, 5:10:29 PM9/27/17
to Selenium Users
Original issue is documented here


IE was working fine all these days. Today I updated the IE driver to 3.6.0 (from here https://www.nuget.org/packages/Selenium.WebDriver.IEDriver/)

Now, it is throwing this exact error as shown in the github page. After clicking on a button, the download dialog ' Do you want to ope or save myfile.pdf from [ip address]? |Open |Save |Cancel|' and then it doesnt proceed to next method. It throws an exception 
OpenQA.Selenium.WebDriverException: The HTTP request to the remote WebDriver server for URL http://192.168.137.5:4444/wd/hub/session/16cdc835-87f5-4af6-965b-1e60ef73c28d/element/7/click timed out after 60 seconds. ---> System.Net.WebException: The request was aborted: The operation has timed out.

I am not sure if it was fixed before (as the post at github says it will be fixed in future relase) and now the latest version broke. I was on version 3.5.0 and it was working fine. Now it is not. 

Anyone , any suggestion how to deal with it?

Thanks

⇜Krishnan Mahadevan⇝

unread,
Sep 27, 2017, 9:27:17 PM9/27/17
to seleniu...@googlegroups.com

I don't think it was fixed. I doubt if it would be fixed as well. I would suggest that you use the workaround which Jim has suggested in the comments (viz., Leverage a pagetimeout, trigger it)


--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/67e82c12-ceb2-4eb1-87b4-f1b694bc0358%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/

My Technical Scribbings @ http://rationaleemotions.wordpress.com/

Always a student

unread,
Sep 28, 2017, 3:21:44 PM9/28/17
to Selenium Users
Thanks. I am not sure if it was ever fixed or not. I said it is probably fixed only because it was working fine in version 3.5.0 until I upgraded to the latest version of the IEDriver, 3.6.0. Perhaps it was fixed and now it it is broken again. Not sure.

I used page load strategy as per Jimevans' advice here (https://github.com/SeleniumHQ/selenium/issues/999#issuecomment-201027047) but still no use. Just downgrading the driver for now. 

Always a student

unread,
Jan 22, 2018, 4:00:52 PM1/22/18
to Selenium Users
It has stopped working on 3.5.0 also now. Not sure if updates in Selenium.WebDriver or Selenium. Support did anything to this.  One thing I noticed is that ones it gets to this page where this 'Do you want to open or save..' dialog appears, clicking on Inspect Element in the context menu does not open the developer tools. As if it has been disabled.  Does this give any clue to anyone what might be happening?

Always a student

unread,
Jan 23, 2018, 3:22:38 PM1/23/18
to Selenium Users
I found a solution myself. After getting to this particular page, the clicks were throwing exception. Instead of using iWebelement.click(), I used the click in OpenQA.Selenium.Interactions where I was moving to the element and click using this click() method in this namespace, then the exceptions went away

Always a student

unread,
Jan 23, 2018, 3:30:01 PM1/23/18
to Selenium Users
 Actions class in this namespace
Reply all
Reply to author
Forward
0 new messages