If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

How to wait for all objects on page to load?

I am new to SilkTest, and working to setup a test case for a web application (SAP IC Web client).
I have a problem with test script looking for/clicking on an object, before it actually finishes loading. If I use Sleep(60) and wait for that long, then it completes the load and it is able to move on successfully, but I cannot use sleep, as the time it takes for the page to load completely is one of the timer metrics I need to collect.
Can someone recommend other ways to make sure that all objects on the page completely loads before it moves forward with next command?

Re: How to wait for all objects on page to load?

You wait for object which is common in all windows( For. E.g Header, Footer). If it doesn't work check if the parent window which is defined in your application exists and wait till that object exists.

Re: How to wait for all objects on page to load?

instead of for all objects you can wait for required object to save the test case execution time. for this use exists method instead of sleep method.
e.g : if(myobject.exists(60))
myobject.click()
refer to silktest help for more details on exists method.