Micro Focus QTP (UFT) Forums
How to check image with text - 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 image with text (/Thread-How-to-check-image-with-text)



How to check image with text - sangeeta - 07-05-2008

Hi friends

I m working in banking application

in application bank can be added by two ways ,any number of bank can be added and after adding bank it will aapear as a link on a page.if bank is added via way 1 image of delete button should be available and if bank added via way2 the delete button should not be availble near bank name

so how can i perform check using QTP wheter added bank have delete button available or not ????i tried with bitmap and text checkpoit but it didnt worked becuase in order to check evrytime i wil have to add bank from both ways way1 and way2 ????? and evrytime the bank name will be different everytime location of link will also be different .so nothing is fixed by which i can check the things by puttind check points
any sort of help would be appreciated


RE: How to check image with text - Ankur - 07-05-2008

You can check for the existence of button using .exist , if the text is variable use regular expressions so that it can identify whether button is available or not.