Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Time Delay issue with Exist
#6
Solved: 11 Years, 3 Months, 4 Weeks ago
@ Lorena: There are 3 cases.
Case 1: Exit----> without any timeout.
In this case qtp will search the object according to the Object syncronization time out.

Case 2: Exit(0)--->time out specified as 0
In this case QTP returns the True or False value immediately.

Case 3: Exit (#)---> time out specified as some value.
In this case QTP waits until it finds the object or until the timeout is reached.

I tried all the three case at my end and it was working very fine.
Below is the script that i used for my internal portal.

Code:
MsgBox("Welcome")
If Browser("My News").Page("My Applications").Link("eManager").Exist(0) Then
    MsgBox("false")
    else
    MsgBox("true")
End If
Browser("My News").Page("My News").Link("My applications").Click
Browser("My News").Page("My Applications").Link("eManager").Click

Here I am looking for a link which is present on some another page.
When I am using Exit(0) its immediately giving me msgbox as True.
and when I am using Exit alone it takes time according to the Object syncronization value.

Please try it again and let me know.

Regards,
Sankalp
Reply


Messages In This Thread
Time Delay issue with Exist - by mv8167 - 12-10-2011, 02:50 AM
RE: Time Delay issue with Exist - by sshukla12 - 12-12-2011, 12:59 PM
RE: Time Delay issue with Exist - by mv8167 - 12-14-2011, 02:09 AM
RE: Time Delay issue with Exist - by supputuri - 12-14-2011, 02:37 AM
RE: Time Delay issue with Exist - by mv8167 - 12-14-2011, 02:47 AM
RE: Time Delay issue with Exist - by sshukla12 - 12-14-2011, 11:22 AM
RE: Time Delay issue with Exist - by mv8167 - 12-14-2011, 07:11 PM
RE: Time Delay issue with Exist - by sshukla12 - 12-14-2011, 10:09 PM
RE: Time Delay issue with Exist - by mv8167 - 12-14-2011, 10:57 PM
RE: Time Delay issue with Exist - by vIns - 01-11-2012, 10:30 AM
RE: Time Delay issue with Exist - by mv8167 - 01-13-2012, 08:08 PM
RE: Time Delay issue with Exist - by grosorg - 06-19-2017, 02:56 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Exist and Visible Are True When Objects Aren't There - Is there A Better Way? zunebuggy 3 3,146 04-24-2018, 02:12 PM
Last Post: Ankur
  Performance Issues Using '.Exist' AndyBSG 2 3,501 12-12-2014, 03:24 PM
Last Post: AndyBSG
  datatable column exist diya 3 12,552 12-11-2012, 11:24 AM
Last Post: elango87
  Check if exist not selected radiobutton sedin 6 7,770 09-12-2012, 12:55 PM
Last Post: sedin
  Trying to do this .exist but it is always TRUE chong67 5 6,058 07-09-2012, 11:41 PM
Last Post: chong67

Forum Jump:


Users browsing this thread: 9 Guest(s)