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 : 2330
  • Numbers of messages : 6044
  • Numbers of users : 5009
  • Numbers of points : 257
Similar topics
Hi all I want to throw an exception if ,a string given in excel sheet is not present in the drop down list of an application. how to check whether a string is present in the drop down list or not. Can anyone help me...!!
Hi all, Can we compare strings? for example: There is a login page: I have entered username say :XYZ then once i click on login button:It opens another page which should display the text as "Welcome XYZ" How can we verify the text after Welcome is
Hello, With Eclips and Apache POI i read values from Excel into a 2 dimensional array. I read the values from the array, into a string variable in my Java script. The value in Excel is visible as 1, the value in Java as 1.0 How can i convert the strin
Hi Team, I wanted to know a technique to capture the current date in Selenium IDE with HTML. I have a requirement to capture the current date. Thanks & Regards, Soumya
Have you seen this! If not, step outside tonight just after sunset and you will be in for a spectacular treat! http://www.earthsky.org/skywatching/ See
Forums from same category