10-20-2011, 02:19 PM
Hi Gaveyom,
Yes there is a waitproperty in QTP which will Wait until the specified object property achieves the specified value or exceeds the specified timeout before continuing to the next step. Below is the sample code to Wait For an Edit Box to Become Enabled Using the Default Timeout ..
For more help u can check the qtp help.
There is a wait method which u can use ..
e.g., Wait(5)
Regards,
Ankesh
Yes there is a waitproperty in QTP which will Wait until the specified object property achieves the specified value or exceeds the specified timeout before continuing to the next step. Below is the sample code to Wait For an Edit Box to Become Enabled Using the Default Timeout ..
Code:
If Browser("index").Page("index").WebEdit("Account").WaitProperty("disabled", 0) Then
Browser("index").Page("index").WebEdit("Account").Set ("123")
End If
There is a wait method which u can use ..
e.g., Wait(5)
Regards,
Ankesh