Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need help retrieving innertext of a link
#1
Not Solved
Code:
Set link_item = Browser("ClaimCenter v6.0.x").Page("Reserves").Frame("Set Reserves").WebTable("Page Number Table").ChildItem(1,2,"Link",0)
msgbox link_item.GetROProperty("innertext")
The following line above outputs the value "Next"

Dim innertextvalue
innertextvalue = link_item.GetROProperty("innertext")
msgbox innertextvalue


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!!
Reply
#2
Not Solved
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)
msgbox link_item.GetROProperty("innertext")
Dim innertextvalue
innertextvalue= link_item.GetROProperty("innertext")
msgbox innertextvalue
Reply
#3
Not Solved
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
Reply
#4
Not Solved
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Retrieving Text from a PDF file smartkarthi 2 4,690 08-22-2013, 11:44 AM
Last Post: smartkarthi
  Retrieving default value from embedded webedit from webtable indranilgoswamimcb 1 3,119 01-12-2012, 02:47 PM
Last Post: sshukla12
  How to store a value from InnerText property to an Array ? shreyya 2 12,051 07-01-2010, 09:16 AM
Last Post: basanth27
  VALUE, INNERTEXT property from WebEdit and WebElement objects AGE_WACH 4 24,460 12-22-2008, 04:43 PM
Last Post: bfakruddin

Forum Jump:


Users browsing this thread: 1 Guest(s)