Reputation: 1
I am relatively new to Selenium IDE and very green when it comes to scripting/coding.
What I'm looking to do, from what research I've already done, is the same thing as the storeLocation command used to do. I need to pull in the URL of the current page as a variable for use down the line.
95% of the research I've done ends up in an article from years back talking about storeLocation which is not available in the current version of IDE.
Is there another command that I can use? Otherwise, a script I can use in IDE to save the current URL to a variable?
Thanks in advance!
Upvotes: 0
Views: 106
Reputation: 446
You was right, when use execute script
command. But you should read documentation. This command just executes code that you have written in the Target
field and doesn't return anything.
So you should use this command: execute script | return window.location.href; | url
Upvotes: 1