How to check an object is NOT there? - 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: UFT / QTP Others (https://www.learnqtp.com/forums/Forum-UFT-QTP-Others) +--- Thread: How to check an object is NOT there? (/Thread-How-to-check-an-object-is-NOT-there) |
How to check an object is NOT there? - alecjcook - 05-08-2008 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 RE: How to check an object is NOT there? - Ankur - 05-09-2008 Use .Exist method RE: How to check an object is NOT there? - niranjan - 05-13-2008 Try using what Ankur suggested. If .Exist is taking too much time, you can try .Exist(0.1) |