Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to check an object is NOT there?
#1
Solved: 10 Years, 9 Months ago
I have an object in my repository, and I would like to set up a checkpoint to check that this object is NOT on the current page.

At the moment, my rather dramatic solution is to rely on the fact that "Smart Identification" will always pick up the same object if the one I'm looking for is not there. this has the unhappy side affect of recording a "!" next to the test step in the results. Does anyone know of a solution to this problem?
Cheers, Alec
Reply
#2
Solved: 10 Years, 9 Months ago
Use .Exist method
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
Reply
#3
Solved: 10 Years, 9 Months ago
Try using what Ankur suggested.
If .Exist is taking too much time, you can try .Exist(0.1)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to force QTP to Check for trigger through Recovery Object ? Sumit Maru 0 3,032 02-21-2011, 02:44 PM
Last Post: Sumit Maru
  How to check visibility of an Object ritugoyal 4 10,713 08-03-2009, 03:39 PM
Last Post: Ankur
  Check if the Object is Empty/Null manojith1984 1 13,027 05-20-2009, 10:44 AM
Last Post: manojith1984
  QTP 9.5 Object Repository merge tool not merging the Check Point objects govqa 0 3,233 05-18-2009, 07:11 PM
Last Post: govqa

Forum Jump:


Users browsing this thread: 1 Guest(s)