Open a link based on XPath in a new tab

I have this macro which clicks on a button on a webpage:

Above works. What I want is a way to open this in a new tab.

This is my attempt but it is not working:

Any ideas?

Rather than the xpath (which just matches one or more locations on an html page), you need to obtain the URL in the link (the <a href="???"> tag) which the xpath is matching, and which is getting clicked.

It is possible for you to show us the url of the page to which you are applying the xpath search + click ?

( See, for example: Copy the url address of the xPath )

That macro did the trick! Thanks.