[UFT] Get text into DIV through HTML tag

I have this element.

I would like to take the text into WebElement object so i wrote:
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...."


Thanks a lot.

Parents Reply Children