08-19-2010, 06:20 PM
There are several ways you can do this.
If you are testing a Web application, then you can use the "Sync" option as follows:
Browser("xyz").Sync --> It will wait untill all the objects to the browser are loaded.
Or you can make use of "WaitProperty" method as follows:
Property--> It may be visible,disabled,value etc.
Condition-->It may be True,False or any specific value
Please try to explore Insert-->Synchronization Point option in QTP. You can make use of QTP Help file
If you are testing a Web application, then you can use the "Sync" option as follows:
Browser("xyz").Sync --> It will wait untill all the objects to the browser are loaded.
Or you can make use of "WaitProperty" method as follows:
Code:
Browser("").Page("").WebEdit("").WaitProperty "property","condition",timeout
Property--> It may be visible,disabled,value etc.
Condition-->It may be True,False or any specific value
Please try to explore Insert-->Synchronization Point option in QTP. You can make use of QTP Help file