Asynchronous loading and waiting commandsby Group Public on Wednesday February 11 2009 @ 15:43:45 (1/1 Points) |
|
| Reference ✑ Reply ✓ Stick It ✗ Ditch It ⚐ Tag It |
TestPlan Asynchronous
For numerous reasons related to dynamic pages and technical limitations, TestPlan scripts should be written with the assumption that the page is not done loading by the time a GotoURL, SubmitForm, Click or other function has been called. In the worse case the request may not have even been performed yet.
For the most part this is not relevant, and likely you have not noticed this yet. The reason is because TestPlan will automatically wait when you attempt to work with an element that is not on the page (for the exact reasons given above TestPlan assumes the element will appear).
That is, when issuing any command that uses the page, such as Check, Click or via the Response context, if the item cannot be found now then TestPlan will wait a few seconds for it to appear.
Alter timeout
The Web.WaitTimeout context item specifies the number of milliseconds to wait for an item to appear.
Waiting for a page to load
If you nonetheless need to know, or wait, until the page has loaded, please refer to Detecting the end of a page and completed page load→.
TestPlan Asynchronous loading and waiting commands
