0

the_id必须31岁

如何在 selenium 中使用 js 访问该网址?

我已经试了:

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

${the_id}没有被插值。

4

1 回答 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.

于 2013-06-08T10:29:33.270 回答