adjust driver timeout

45 views
Skip to first unread message

Danny Guerrier

unread,
Dec 16, 2009, 11:25:54 AM12/16/09
to webd...@googlegroups.com
I'm using the IE driver and in some instances it takes upwards of 5 minutes to log into the application I'm testing.
This sometime causes the driver to throw a timeout exception.  I'll except having the driver taking so long to log in if there was a way to increase the driver timeout.  Is there any way of doing this?

Eran M.

unread,
Dec 16, 2009, 11:28:25 AM12/16/09
to webd...@googlegroups.com
Is the exception thrown during a get() or navigateTo() call?

2009/12/16 Danny Guerrier <dgue...@gmail.com>
I'm using the IE driver and in some instances it takes upwards of 5 minutes to log into the application I'm testing.
This sometime causes the driver to throw a timeout exception.  I'll except having the driver taking so long to log in if there was a way to increase the driver timeout.  Is there any way of doing this?

--

You received this message because you are subscribed to the Google Groups "webdriver" group.
To post to this group, send email to webd...@googlegroups.com.
To unsubscribe from this group, send email to webdriver+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/webdriver?hl=en.

Danny Guerrier

unread,
Dec 16, 2009, 11:35:55 AM12/16/09
to webd...@googlegroups.com
This is the exception.
org.openqa.selenium.ie.TimedOutException: The driver reported that the command timed out. There may be several reasons for this. Check that the destinationsite is in IE's 'Trusted Sites' (accessed from Tools->Internet Options in the 'Security' tab) If it is a trusted site, then the request may have taken more thana minute to finish.at org.openqa.selenium.ie.ErrorHandler.verifyErrorCode (ErrorHandler.java:71)at org.openqa.selenium.ie.InternetExplorerElement.click (InternetExplorerElement.java:60)at org.openqa.selenium.internal.seleniumemulation.Click.handleSeleneseCommand (Click.java:33)at org.openqa.selenium.internal.seleniumemulation.Click.handleSeleneseCommand (Click.java:23)at org.openqa.selenium.internal.seleniumemulation.SeleneseCommand.apply (SeleneseCommand.java:30)at org.openqa.selenium.WebDriverCommandProcessor.execute (WebDriverCommandProcessor.java:270)at org.openqa.selenium.WebDriverCommandProcessor.doCommand (WebDriverCommandProcessor.java:188)at com.thoughtworks.selenium.DefaultSelenium.click (DefaultSelenium.java:167)

Simon Stewart

unread,
Dec 16, 2009, 11:57:10 AM12/16/09
to webd...@googlegroups.com
Hmm... the IE driver wraps a timeout around every call it makes. It
should be possible to expose the amount of time you're willing to
wait. Can you please file a feature request on the issue tracker? That
way it won't fall through the cracks :)

Regards,

Simon

Danny Guerrier

unread,
Dec 16, 2009, 12:42:29 PM12/16/09
to webd...@googlegroups.com

Danny Guerrier

unread,
Dec 16, 2009, 12:43:54 PM12/16/09
to webd...@googlegroups.com
I mistakenly opened it as a defect, sorry.
Reply all
Reply to author
Forward
0 new messages