0

I've got the_id to be 31

How can I go to that url with js in selenium?

I have been trying:

store # not sure command to use here.  Not "open" as that open up this window.
javascript{window.location.href = "/districts/${the_id}"}    
dummy

but ${the_id} is not being interpolated.

1
  • Yes, that is correct. Commented Jun 8, 2013 at 10:27

1 Answer 1

1

It turned out that it actually was being interpolated OK

It was just the log showed the ${the_id} but the url used the real value.

It was hard to see as I am testing error pages which make the actual url hard to see.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.