Grabbing the current URL and storing it as a string.

ramsen at 23h55
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.
This topic belongs to the forum
  • Numbers of topics : 2338
  • Numbers of messages : 6053
  • Numbers of users : 5040
  • Numbers of points : 139
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! See
Forums from same category
  • Spark Energy is an electricity and natural gas provider for homes and businesses.

  • This discussion board serves as a tool to aid students during the lesson confusion and misinterpretation occurs help can come from peers and myself, Ms Kettledas

  • Free forum : LoH discussion for strategy and listing of allies and friendlies.

  • A forum dedicated to video game discussion, reviews, and general tomfoolery.

  • Discussion Forum for

  • Earn Money Without Any Invesment