Hello,
In latest version, Automation Anywhere 5.5. Web Recorder provides functionality of Get URL in Manage Web Control to get the URL of a link and save it in a variable.
We have attached a sample task for your reference. Please copy it under location, 'C:\...\My Documents\Automation Anywhere\Automation Anywhere\My Tasks' folder.
You can download free version of Automation Anywhere 5.5 from our website:
Automation Anywhere - The Leading Automation Software
Hope that helps.