IE Webdriver exceptions and timeouts

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

IE Webdriver exceptions and timeouts

Kenneth Exton
So in several of my automated test scripts at random spots I keep getting the below error


OpenQA.Selenium.WebDriverException: The HTTP request to the remote WebDriver server for URL <a title="Follow link" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Flocalhost%3A62112%2Fsession%2Fbbf78352-7586-4c16-9264-3b5affb4de69%2Felement%2F8a933d14-fffc-4138-8d40-9d703b352d0b%2Fclick\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEqzVKTbWA-hf60-ueQ54cra0coSQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Flocalhost%3A62112%2Fsession%2Fbbf78352-7586-4c16-9264-3b5affb4de69%2Felement%2F8a933d14-fffc-4138-8d40-9d703b352d0b%2Fclick\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEqzVKTbWA-hf60-ueQ54cra0coSQ&#39;;return true;" href="http://localhost:62112/session/bbf78352-7586-4c16-9264-3b5affb4de69/element/8a933d14-fffc-4138-8d40-9d703b352d0b/click" target="_blank" rel="nofollow">http://localhost:62112/session/bbf78352-7586-4c16-9264-3b5affb4de69/element/8a933d14-fffc-4138-8d40-9d703b352d0b/click timed out after 60 seconds. ---> System.Net.WebException: The operation has timed out

Now after some research one of the first possible solutions I found was to up the timeout time via the line of code below:

InternetExplorerOptions options = new InternetExplorerOptions();

options.RequireWindowFocus = true;

Driver = new InternetExplorerDriver("C:\\Selenium\\IEDriver", options, TimeSpan.FromMinutes(5));


This resulted in the error changing to this:


OpenQA.Selenium.WebDriverException: The HTTP request to the remote WebDriver server for URL <a title="Follow link" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Flocalhost%3A62112%2Fsession%2Fbbf78352-7586-4c16-9264-3b5affb4de69%2Felement%2F8a933d14-fffc-4138-8d40-9d703b352d0b%2Fclick\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEqzVKTbWA-hf60-ueQ54cra0coSQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Flocalhost%3A62112%2Fsession%2Fbbf78352-7586-4c16-9264-3b5affb4de69%2Felement%2F8a933d14-fffc-4138-8d40-9d703b352d0b%2Fclick\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEqzVKTbWA-hf60-ueQ54cra0coSQ&#39;;return true;" href="http://localhost:62112/session/bbf78352-7586-4c16-9264-3b5affb4de69/element/8a933d14-fffc-4138-8d40-9d703b352d0b/click" target="_blank" rel="nofollow">http://localhost:62112/session/bbf78352-7586-4c16-9264-3b5affb4de69/element/8a933d14-fffc-4138-8d40-9d703b352d0b/click timed out after 300 seconds. ---> System.Net.WebException: The operation has timed out


I have also tried to update the windows registry keys to add values for turning on the BF CACHE, ReceiveTimeout, KeepAliveTimeout, as well as the server info timeout. None of these seem to completely solve the problem.


The last option I have is to update the webdriver but I do not know if that will fix this problem. I am running out of options. Is there something I am missing? In all of the message boards I have read on the topic it seems many others have had a similar problem all the way back to early 2016 with no apparent solution provided by selenium.


--
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/3a713ee1-b98d-485d-95bf-5dbfa2514fd2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: IE Webdriver exceptions and timeouts

cassian

On Tue, Jul 10, 2018, 1:56 AM Kenneth Exton <[hidden email]> wrote:
So in several of my automated test scripts at random spots I keep getting the below error


OpenQA.Selenium.WebDriverException: The HTTP request to the remote WebDriver server for URL http://localhost:62112/session/bbf78352-7586-4c16-9264-3b5affb4de69/element/8a933d14-fffc-4138-8d40-9d703b352d0b/click timed out after 60 seconds. ---> System.Net.WebException: The operation has timed out

Now after some research one of the first possible solutions I found was to up the timeout time via the line of code below:

InternetExplorerOptions options = new InternetExplorerOptions();

options.RequireWindowFocus = true;

Driver = new InternetExplorerDriver("C:\\Selenium\\IEDriver", options, TimeSpan.FromMinutes(5));


This resulted in the error changing to this:


OpenQA.Selenium.WebDriverException: The HTTP request to the remote WebDriver server for URL http://localhost:62112/session/bbf78352-7586-4c16-9264-3b5affb4de69/element/8a933d14-fffc-4138-8d40-9d703b352d0b/click timed out after 300 seconds. ---> System.Net.WebException: The operation has timed out


I have also tried to update the windows registry keys to add values for turning on the BF CACHE, ReceiveTimeout, KeepAliveTimeout, as well as the server info timeout. None of these seem to completely solve the problem.


The last option I have is to update the webdriver but I do not know if that will fix this problem. I am running out of options. Is there something I am missing? In all of the message boards I have read on the topic it seems many others have had a similar problem all the way back to early 2016 with no apparent solution provided by selenium.


--
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/3a713ee1-b98d-485d-95bf-5dbfa2514fd2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CABh6KKuUw7aehvdiacUhywxGOgxSWUm6%3D639Q1aRW%2Bv48e7MTg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.