Getting URL of current page

This should be a pretty simple one.
How can I extract the URL of a current webpage into a variable?
Thanks a lot!

There’s an internal variable already built in to grab the current url, it’s just !URL.

1 Like

Thank you.
Is that how it’s supposed to look?


Because this is giving me a funny error :
“timeout reached when looking for element 'https://www.thetimes.co.uk/edition/news/dont-derail-brexit-deal-with-unfair.html
I am clearly doing something wrong with the syntax

Just “store”, not “storeText”.
But as an alternative you can always use storeEval | window.location.href | whatever

1 Like