Handling page load delays

Tuesday, October 18, 2011
Avatar
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
Avatar
re: inflectra.david Tuesday, October 18, 2011
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.

Spira Helps You Deliver Quality Software, Faster and With Lower Risk

And if you have any questions, please email or call us at +1 (202) 558-6885

 

Statistics
  • Started: Tuesday, October 18, 2011
  • Last Reply: Tuesday, October 18, 2011
  • Replies: 1
  • Views: 2491