Grabbing the current URL and storing it as a string.

ramsen at 23h55
18
Jan
2011
Grabbing the current URL and storing it as a string.

I'd like to store the URL of the page I'm on as a string. I tried using window.location.href to grab the URL from the current window, but since the current open window is Selenium IDE and not the web page it does not work. Is there another way I can take the URL and store it using javascript or Selenium commands?

I want to be able to check the URL and change certain variables based on the URL.
About
This topic belongs to the forum
  • Numbers of topics : 1162
  • Numbers of messages : 3136
  • Numbers of users : 2144
  • Numbers of points : 1257
Similar topics
Hi, I am using Selenium IDE but couldn't use Selenium RC. when I extract zipfile which I downloaded from http://seleniumhq.org/download/, its giving an error after 80% extraction it seems. That might be a problem. What I wan
On several occasions in the past, the girls in the string quartet have entertained early birds at gigs with their glorious renditions of Elbow favourites old and new. It certainly made the uncomfortable wait on the MEN floor much more bearable as we sat
Hi, Haven't seen this one before: Found For TV Show :- NCIS, Episode :-t:\$tv$\NCIS\Season 6 (incomplete)\NCIS.S06E19.HDTV.XviD-LOL.[VTV].nfo Season :- 6 Episode :- 19 URL For Episode :-
Having heard the string quartet play their versions of several Elbow songs on the recent tour, is there anyone else out there who would like these to be made available for download? I'd buy them!
As his talent and charisma when alive seem to have gone largely unnoticed. Please look at the links to his music if you have time, if you havn't been aware of his music before. He took his own life on monday 13th december aged 63, suffering
Forums from same category
See also
more_less
Informations

3 Replies For the topic :
"Grabbing the current URL and storing it as a string. "

This topic has been viewed 1381 times.

Last message :
18/01/2011 at 23h55 by "ramsen"