Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I had this working fine a couple of months ago but now when I run the test it fails and I don't know why or how to fix.

Background:
I have a screen with several links so that the 'admin' user who is currently logged in can login as one of the 'practitioners' via the login hyperlink presented.

Details:
So for my test I click on the 'Login link' hyperlink(s), enter & confirm a new password as required, and then I get to the practitioners screen 'as them'. The 'wrinkle' was that the pop-up for the user to enter their (new) password happened on a new window that the selenium IDE used was a new window. So basically just clicking on the hyperlink didn't work. To get around this I was able to store the hyperlink's href -a@href- in a selenium variable first_login_link_to and then use open instead of clickAndWait to visit the page, i.e. open ${first_login_link_to}

This was working fine a few months ago.... but it is not working now.

I get page doesn't exist and when I look at the url - urgh! It somehow includes the locator stuff and I am getting

http://dmplanning-stage.herokuapp.com//tr[td[contains(.,'6 Day')]][1]/td[8]/a@href

instead of

http://dmplanning-stage.herokuapp.com/p/zaH7m3aL7fxuPLvrc21L

in the browsers url address bar.

How can I get selenium to open the url stored in the variable and not use that 'locator' address?

selenium:

open          /admin
clickAndWait  link=practitioners
store         //tr[td[contains(.,'6 Day')]][1]/td[8]/a@href
open          ${first_login_link_to}
share|improve this question
add comment (requires an account with 50 reputation)

1 Answer

Found it - whew! Somehow my storeAttribute got changed to plain store.
Once I changed it back everything worked again!

share|improve this answer
add comment (requires an account with 50 reputation)

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.