03-18-2008, 06:47 PM
'The following example uses the WaitProperty method to make the
'test wait until the Next object is enabled, or for
'5 seconds (5000 milliseconds) to pass. If the object is enabled before
'4 seconds pass, QuickTest clicks the object.
-----------------
This is some modification i did and it is working fine. I can say that it is same as "Sync" statement. But Sync is not usefull for DP, above one is good statement for replacement if "Sync". More over WaitProperty is useful even for record and play also.
Thank you very much to Ankur and sreekanth for providing the info and helping in solving the issue
Regards
Raj
'test wait until the Next object is enabled, or for
'5 seconds (5000 milliseconds) to pass. If the object is enabled before
'4 seconds pass, QuickTest clicks the object.
Code:
If QOALogin.WebButton("name:=Next","html id:=NEXT").WaitProperty("Enabled", True, 5000) =
False Then
End If
QOALogin.WebButton("name:=Next","html id:=NEXT").Click
-----------------
This is some modification i did and it is working fine. I can say that it is same as "Sync" statement. But Sync is not usefull for DP, above one is good statement for replacement if "Sync". More over WaitProperty is useful even for record and play also.
Thank you very much to Ankur and sreekanth for providing the info and helping in solving the issue
Regards
Raj