Saturday, July 25, 2009

alternative for a wait statement in QTP?

Using Exist Method.

Ex:Browser("title:=.*").Page("title:=.*").Link("name:=OK").Exist(2)

It will wait up to specified time(2sec) when object does not exist.

or increase the global synchronization point

or use WaitProperty

or use Sync() method

No comments:

Post a Comment