Micro Focus QTP (UFT) Forums
Exist(3) - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: Exist(3) (/Thread-Exist-3)



Exist(3) - Sudheer_tester - 12-28-2009

Hi all,
I am new to VB script and QTP. I have a doubt on Exist Property. I know the Exist and Exist(0). Could you please tell that what is the meaning of the Exist(3),
In my QTP Script the following code is there
Code:
If Browser("...").Page("...").WebButton( "html tag:=INPUT", "name:=I Agree", "type:=submit" ).Exist( 3 ) = "True" Then


and is there any numbers are available for Exist property other than 0 and 3 ?


RE: Exist(3) - Saket - 12-28-2009

Hi Sudheer,
Exist statements in QTP return a true/false indicating whether or not an object currently exists. the parameters which we use for exist is the timeout seconds for which QTP will check for the existance of the objects which is like Exist(1),Exist(3)..
if you use Exist(3) as in your statement QTP will wait for 3 seconds and check if object exist
if you dont use the param and simple use Exist QTP will take the default value which is 20 seconds.


RE: Exist(3) - Sudheer_tester - 12-28-2009

Thanks a lot