Exist is used to check if the object is present in the screen and do the operations on the object.
for example, ,
If we use the code above QTP will wait a maximum of 5 seconds for the Image("") object to appear. If it appears, it will execute the next line of code.
If the object doesn't appear with in 5 seconds, the step will fail.
Hope you got it.
Thanks,
Elango
for example, ,
Code:
Browser("").Page("").Image("").Exist(5)If we use the code above QTP will wait a maximum of 5 seconds for the Image("") object to appear. If it appears, it will execute the next line of code.
If the object doesn't appear with in 5 seconds, the step will fail.
Hope you got it.
Thanks,
Elango

