Not able to get hyperlink

I have to get one hyperlink(link of an Excel file) from a specific text in webpage.But get attribute with href is giving some js value and am not able to get the link from it. If I click on link it opens a new tab with popup asking if to open the Excel .but directly opening the Excel never works due to some access issue. So we were getting excel url from the new tab that’s opened by clicking the hyperlink and using http, this url is passed to directly download the file
But now the issue is get text activity to get url from address bar of excel is mostly failing.
Is there any way to get the hyperlink directly.


Instead of get text did you try with get url activity ?