Support > Forums > OpenBots Studio > How to get the URL behind a text link in a web site?

How to get the URL behind a text link in a web site?

David Santos

  • Reporter
  • Calender Icon August 03,2021 at 11:22 AM

Hi OpenBots experts, Can you provide guidance to get the URL under a text element in a link on a web page? I have tried to use the "Selenium Element Action" but in the list of actions I couldn�t find a specific one to get a URL. Perhaps using "get attribute" or "get options" but couldn't figure out how. Thank you in advance.

This forum has 314 topics, 681 replies, and was last updated 8 days ago by Support Agent

Nataly Alvarado...

  • Participant
  • Calender Icon August 05,2021 at 5:43 PM

Hi David,

You are in the right track. You'll need to use the "Get Attribute" action to get the value. To obtain the Attribute Name:

  • Open a Chrome session
  • Inspect the targeted element
  • Select the "Properties" tab
  • Expand properties until you find the correct one. For example "href" attribute.
  • Indicate the property name in the Attribute Name field and include a string variable in the "Output Attribute Variable" field to hold the extracted value.

Please, reference the attached screenshot:

Attribute Inspection Image

You are not authorized to reply, please click here to login and add your reply to this topic.