Need help retrieving innertext of a link - 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: Need help retrieving innertext of a link (/Thread-Need-help-retrieving-innertext-of-a-link) |
Need help retrieving innertext of a link - pujamukho - 04-29-2011 Code: Set link_item = Browser("ClaimCenter v6.0.x").Page("Reserves").Frame("Set Reserves").WebTable("Page Number Table").ChildItem(1,2,"Link",0) This time the msgbox outputs blank. Can someone please tell me what I am doing wrong. Why is the innertext not being saved to the innertextvalue? Appreciate your help!! RE: Need help retrieving innertext of a link - vIns - 04-29-2011 Hi, I could not find any issue here... i thought there could be a typo in the vairable name.. but it is correct only. Please try this .. You would see 2 message boxes..both should display same value... Code: Set link_item = Browser("ClaimCenter v6.0.x").Page("Reserves").Frame("Set Reserves").WebTable("Page Number Table").ChildItem(1,2,"Link",0) RE: Need help retrieving innertext of a link - pujamukho - 04-29-2011 Hello thanks for the response. I tried what you had suggested but I get the same result. msgbox link_GetROProperty("innertext") prints "Next" (which is what I expected) msgbox innertextvalue prints nothing Any further ideas with what the problem might be? The object class for link_item is Link Thanks RE: Need help retrieving innertext of a link - Charanpreet - 05-03-2011 Try removing Dim STATEMENT from the code. ie directly assign value to the variable. and also try with first declaring the innertextvalue = "" statement. Hope this works. |