How do i capture href of web links?

Ask general questions here.
Posts: 1
Joined: Mon Nov 16, 2015 1:35 pm

How do i capture href of web links?

Post by Tanzim » Mon Nov 16, 2015 1:44 pm


I am a Ranorex and GUI automation newbie. Our company has just purchased a developer's license of Ranorex and put me onto some GUI automation. We've made some good progress albeit with a few noob challenges.

I am trying to capture the href of web links on a page and have been unsuccessful so far.
Egs. Inspecting the "General Questions" on the Ranorex forum page will return the "URL" to which the text corresponds to. I need to do the same in an automated way.

Please could you provide me leads to accomplish this.

Thanks in advance,

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA

Re: How do i capture href of web links?

Post by Support Team » Tue Nov 17, 2015 1:31 pm

Hi Tanzim,

Unfortunately I am not exactly sure if I got your question correctly, but basically, you can get the HRef from an specific element by using the GetValue action as shown in the screenshot below.
This action allows you to store the value of the HRef attribute in a variable (in this sample called "varHRef")Please let me know if you need any further assistance.

Markus (S)
You do not have the required permissions to view the files attached to this post.