Page 1 of 1

How do i capture href of web links?

Posted: Mon Nov 16, 2015 1:44 pm
by Tanzim
Hi,

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,
T

Re: How do i capture href of web links?

Posted: Tue Nov 17, 2015 1:31 pm
by Support Team
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.
getHRef.png
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.

Regards,
Markus (S)