How to retrieve the url of a hyperlink on a webpage?

Hello, I need to retrieve the url of a hyperlink on a webpage. When I use “Get Attribute” activity, I use “href” as the Attribute input, as I need to get the url of that hyperlink on that webpage, not the url of the webpage itself. However, when I go to “Edit Selector” and then “Open in UI Explorer”, I was not able to find the attribute “href” there. The last line in Ui Explorer is like “” . However, if I choose “href” as the Attribute, it did not return any value. Any hint how to change the Selector to be able to retrieve the url of that hyperlink? Thanks!

hi @Changrui_Cheng

Welcome to the community!!!

Hope this helps you :slight_smile:

There are 2 to 3 href link in web pages. How to get one of them ?

1 Like