First, indicate the target element.
Next, if the element doesn’t contain A tag, click element which is A around the current target in Visual Tree and set it as target element using right click.
Finally use GetAttribute activity with the above selector.
Thanks for the reply, I have set the A tag (Just above the IMG) to Target element, as below. Are there any other boxes I need to check to expose the href ?
The link is stored in the 2nd last tag, and I have ‘added’ it, and also ticked the href box on the right side panel.
I have a follow-up question on this. I am trying to run this through a loop, which opens a list of webpage (each containing a button with URL to be extracted) from a datatable.
However, when I return the href, it keeps returning the button URL from the first webpage. Somehow, while the correct webpage opens in Chrome, the Get Attribute tool only extracts from the 1st webpage.
I think it’s selector and/or attach browser matter.
Perhaps you should raise a new topic with specific image etc because it’s apart from title of this topic, and it will help those who face same matter.