Get current browser address

Is it possible to grab the current browser address and store in a variable?


Please search in the forum before post.

This post might help you on this:


1 Like

Thanks! One more questions, for some reason “Navigate To” does not work for me - the browser does not go to specified URL. Would you know why?

Have you used browser scope variable in element property? or you are using it with “attache browser” activity?, let me know :slight_smile:

or share the code or may screenshot with properties will work :slight_smile:


I tried using inject js activity (which i’m experimenting laterly) and I was able to get the URL value.

Don’t use selector for inject js.

function(e) {
    return window.location.href;

Awesome Answer is here by @ vvaidyaMVP