History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: SEL-300
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Patrice Neff
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Selenium

waitForConditionTimeout is overwritten by waitForCondition

Created: 31/Aug/06 04:49 AM   Updated: 12/Dec/07 07:29 PM
Component/s: Waiting
Affects Version/s: 0.7.1
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown


 Description  « Hide
I have a test where one command is a "waitForCondition" with a timeout of 50ms. Then a few commands later, I call the "open" command. That command will abort with a timeout exception after 50ms.

I hacked the following patch:
--- core/scripts/selenium-executionloop.js (revision 10102)
+++ core/scripts/selenium-executionloop.js (working copy)
@@ -110,6 +110,7 @@
         this.commandComplete(result);
 
if (result.processState == SELENIUM_PROCESS_WAIT) {
+ this.waitForConditionTimeout = 30 * 1000;
             this.waitForCondition = function() {
                 LOG.debug("Checking condition: isNewPageLoaded?");
                 return selenium.browserbot.isNewPageLoaded();

But that's probably not the clean solution.

 All   Comments   Work Log   Change History      Sort Order:
dhwang - 12/Dec/07 07:29 PM
isn't this fixed already in 0.8?