Micro Focus QTP (UFT) Forums

Full Version: How to check an object is NOT there?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
Use .Exist method
Try using what Ankur suggested.
If .Exist is taking too much time, you can try .Exist(0.1)