Reputation: 1065
I have look over the internet and didn't find an answer I am trying to store the URL in a variable. Found couple of answer that didn't work
Upvotes: 5
Views: 7782
Reputation: 2198
For reference, this is what this looks like in the Selenium IDE
You can then assert that the result is a given value like so:
There's some more useful info here too - https://www.selenium.dev/selenium-ide/
Upvotes: 8
Reputation: 446
You should use execute-script command like this:
execute script | return window.location.href; | url
So after execution of this command url
variable will store url of page.
Upvotes: 3