Micro Focus QTP (UFT) Forums
Checkpoint Image. - 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 Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Checkpoint Image. (/Thread-Checkpoint-Image)



Checkpoint Image. - Mukesh.Laxmidhar - 09-20-2010

Hi,

I know that I am not suppose to do a new thread when a thread with the same question already has been asked. But with 50 ppl viewing this lady called Helens post without any answer I had to post it again since I have the same problemTongue.

Does anyone know how to check for the absence of an image. That is it should be true when the image does not exist. Also I am using QTP 9.5. Thanks alot for any help that anyone can suggest.

Regards,
Mukesh


RE: Checkpoint Image. - PrabhatN - 09-20-2010

Hi Mukesh,

You can check the absence of the image as follows:

Code:
If Browser("").Page("").Image("Image Name").Exist = False Then
   Reporter.ReportEvent micPass,"Verify Image is absent","Image is absent"
   Else
   Reporter.ReportEvent micFail,"Verify Image is absent","Image is present"

End If

Please let me know if it helps !!!


RE: Checkpoint Image. - Mukesh.Laxmidhar - 09-21-2010

Hi Prabhat,

Thanks alot bro that was really helpful Smile

Take care,
Mukesh L.