Micro Focus QTP (UFT) Forums
not able to identify an webelement object - 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: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: not able to identify an webelement object (/Thread-not-able-to-identify-an-webelement-object)



not able to identify an webelement object - Ninjukp - 01-10-2018

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