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?
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.
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))
refer to silktest help for more details on exists method.