Get All Href

Ask general questions here.
Posts: 5
Joined: Thu Jun 30, 2016 8:43 am

Get All Href

Post by Hardeep » Tue Jul 05, 2016 8:29 am


I want to retrieve all the href on the current webpage.
How can I retrieve all href??

please help me

User avatar
Ranorex Guru
Ranorex Guru
Posts: 6781
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Get All Href

Post by odklizec » Tue Jul 05, 2016 9:15 am


You can for example use the code, as described here... ... html#c3574

Just replace Ranorex.Button with Ranorex.ATag and repo item with your own (e.g. DOM element).
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration