Micro Focus QTP (UFT) Forums
how to recoginze a text in web? - 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: how to recoginze a text in web? (/Thread-how-to-recoginze-a-text-in-web)



how to recoginze a text in web? - shrikant_r_08 - 12-16-2010

Hi Friends,

I have one web application and I am using IE 7 for that.
My problem is I want to capture one text from web table but its Text is not constant. I am not finding any unique property for the same object so that I can recognize the Text during run time and will be able to capture its value. Plz help me outSad
Thanks in Advance


RE: how to recoginze a text in web? - manishbhalshankar - 12-16-2010

Hi Shrikant,

Can you provide us the screen shot of your application and the properties of the object?


RE: how to recoginze a text in web? - jsknight1969 - 12-22-2010

did you try using:

Code:
object.GetCellData(row, column)

This assumes the text will always be in the same cell.

Are you sure there isn't something unique about the text or it's enclosing tags? Font, style, class, id...anything that you can get to identify the object?