Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Get text from after webpage ! Help me!
#6
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi viclassic,

I was just asking u the screenshot of the object spy window to know how QTP is recognising the link. This way it would be better for me to give exact resolution.

However, since u haven't posted the screenshot, i will give the resolution as per my understanding.

Add the object(Link) in the OR and use regular expression for the text value of the link(as the text/name of the link is changing dynamically). U will see an icon(something like <#>), click on the icon. Once u click on the icon, a pop up will appear. There will be a check box named regular expression. Check the chekbox and enter .* in the text field.

Once u r done with the above setting, U can use the below code to get the displayed text of the link.

Code:
strLinkName=Browser(<Browser>).Page(<page>).Link(<Link Name as per OR>).GetROProperty("text")

here strLinkName will have the name of the link dispalyed. This name u can use for ur rest of the requirement.

I hope this would serve ur purpose.

Do let me know if it does not work.

Regards,
Ankesh
Reply


Messages In This Thread
RE: Get text from after webpage ! Help me! - by Ankesh - 10-21-2011, 04:09 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Capture All text from webpage and copy it... mpatra 3 5,227 07-25-2018, 05:33 PM
Last Post: vimlesh
  Reading XML Data from a WebPage shaan.mishra87@gmail.com 1 2,204 09-28-2016, 09:16 PM
Last Post: supputuri
  Using static descriptive programming how to count no. of objects on any webpage alpha1 4 6,961 08-11-2015, 08:48 PM
Last Post: kotaramamohana
  Embedded Text on webpage srach84 1 2,722 07-28-2014, 07:35 AM
Last Post: Ankur
  Read text from text file and save it into a variable in qtp arpan 3 12,957 06-19-2013, 08:34 PM
Last Post: arpan

Forum Jump:


Users browsing this thread: 3 Guest(s)