Handling page load delays

Tuesday, October 18, 2011 2:11:27 PM
I have noticed that some of my tests failed b/c of the time it took for some pages to load. The recording is fine, but I am getting "TypeError(-2146827850): Object doesn't support this property or method" when I play the script.

Any adivice on how to handle this?
1 Replies
Tuesday, October 18, 2011 2:11:55 PM
Avatar
re: inflectra.adam on Tuesday, October 18, 2011 2:11:27 PM
It is recommended to fine-tune the synchronization using one of the 2 available methods:

1.
Global.DoSleep(1000);

Waits for 1 second. In many cases it is enough

2. Global.DoWaitFor('MyObjectId', 10000);
- Wait for given object up to 10 seconds. If object is found earlier then method unblocks.
Statistics
  • Started: Tuesday, October 18, 2011 2:11:27 PM
  • Last Reply: Tuesday, October 18, 2011 2:11:55 PM
  • Replies: 1
  • Views: 701