Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Exist(3)
#1
Solved: 11 Years, 3 Months, 3 Weeks ago
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 ?
Reply
#2
Solved: 11 Years, 3 Months, 3 Weeks ago
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.

Reply
#3
Solved: 11 Years, 3 Months, 3 Weeks ago
Thanks a lot
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  General run error when Exist fails msacks 1 1,850 02-08-2019, 02:12 AM
Last Post: Ankur
  [UFT 12.52/VBScript] Test object exist, is visible and enabled before take an action sparkwanted 0 3,640 02-07-2017, 12:28 AM
Last Post: sparkwanted
  how to find Excel file exist or not in vbscript code sree.85 3 11,231 08-22-2013, 11:42 AM
Last Post: akhandesh
  Remote server machine does not exist eroshan 5 14,229 05-06-2013, 06:03 PM
Last Post: Saket
  If page does not exist - skip go to another action janriis 4 4,122 10-12-2010, 11:25 AM
Last Post: Imtiaz-QA

Forum Jump:


Users browsing this thread: 1 Guest(s)