Micro Focus QTP (UFT) Forums

Full Version: not able to identify an webelement object
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I'm having difficulty identifying this webelement object below.I need to retrieve the runtime property value of the innertext/innerhtml value of this object.
Any help would be great..

"Class Name:=WebElement",
"abs_x:=1087",
"abs_y:=314",
"class:=ft-value",
"height:=16",
"html id:=",
"html tag:=SPAN",
"innerhtml:=Random generated number",
"innertext:= Random generated number ",
"outerhtml:=<SPAN class=ft-value> Random generated number </SPAN>",
"outertext:= Random generated number ",
"title:=",
"type:=",
"visible:=True",
"width:=84",

trying the below code:
no =Browser("name:=STR - browsername").Page("title:=pagename").Webelement("class:=ft-value","htmltag:=SPAN","htmlid:=").GetROProperty("innertext")
 msgbox no