Wait Property
As per the name, waitProperty waits till the condition met
or the maximum time specified.
For ex:B().p().webbutton().waitproperty "Enabled",true,30000
So here QTP waits till the button is enabled or waits for
max of 30 Secs and if the button is not enabled, then the
step fails.
Check Property
Where as CheckProperty is to verity whether the value is
matched or not and returns a Boolean value
Ex:
B().p().webbutton().CheckProperty "Enabled",true,30000
Here QTP verifies whether the button is enabled or not and
waits for 30 sec and returns true if the button enable else
return false.
No comments:
Post a Comment