Micro Focus QTP (UFT) Forums
[UFT] Get text into DIV through HTML tag - 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: [UFT] Get text into DIV through HTML tag (/Thread-UFT-Get-text-into-DIV-through-HTML-tag)



[UFT] Get text into DIV through HTML tag - robertosalemi - 01-21-2016

Hi,
I have this element.
[Image: uft_yaweb_spy_html.PNG]

I would like to take the text into WebElement object so i wrote:
Code:
txt = Browser("YA Web").Page("YA Web").WebElement("html tag:=CAPTION").GetROProperty("innerText")
I skipped the WebTable object because in the repository the WebElement was inserted as child of YaWeb Page.

UFT not finds this object into my application:
"The "[WebElement]" object's description matches more than one of the object currently displayed in your application. etc...."

Why?

Thanks a lot.


RE: [UFT] Get text into DIV through HTML tag - venkatesh9032 - 03-21-2016

Object Identification Issue.. Try Descriptive .. Please find the snippet.


1. text = Br().pg().webtable("xyx").getcelldata(Rownum,colnum)
Msgbox text

2.rownum = B().pag().webtable("xyz").getrowwithcelltext("<Give text here>")
Msgbox rownum


RE: [UFT] Get text into DIV through HTML tag - robertosalemi - 03-29-2016

I resolved with removing tag description of object from object repository.