GET SELENIUM URL
-
HI! Anyone here knows how to get the current url, from selenium into a variable?
Using
EXECUTEJS "var URL= window.location.href" -> VAR "URL"
but that doesn't work like that xD
-
Also, <ADDRESS> says "Could not parse any data. The variable was not created."
-
Can you show the error in the debgger log please
-
So, after having a nice little chat with @Ruri , it turns out that my webpage was redirecting later, which means that, by the time it updates <ADDRESS>, it was empty.
A way to bypass this is adding a dummy EXECUTEJS, likeEXECUTEJS "var hello = 'hello';"
after a small delay, so it updates the <SOURCE> and <ADDRESS> variables and then, you can use your new <ADDRESS> variable, which returns the current URL.
Thank you so much!
-
Hi, I'm also interested in storing the Selenium URL in a variable, could you share the line that you used? If you prefer to use discord, drop your discord here!
-
@Ruri , it would be appreciated if you could answer this as well. Thanks!
-
Can you just read the post above yours please? It explains everything.