[UFT] Get text into DIV through HTML tag

Hi,
I have this element.

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")
[/code]
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.

Parents Reply Children