Forum: Ruby on Rails Selenium on Rails: Relative vs Absolute pathnames

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
485071faf1681a4106e4a3420144269a?d=identicon&s=25 David Williams (dwilliams)
on 2007-02-27 17:59
Hello, guys.

I've been playing with the rather great Selenium on Rails plugin
recently, but one problem I've been having is getting it to recognise
relative path names.

From some tests I've seen written by others, it looks as if (using .rsel
files)one can do:

assert_location '/sales/step_one/

But when I try this, the assertion fails, with the message:
"Actual value '' did not
match '/sales/step_one/' "
At the moment I find myself putting in the full URL, but obviously this
doesn't exactly lend itself to moving from one server to another.

Any suggestions, explanations, or blindingly obvious solutions that I've
missed would be appreciated.


This topic is locked and can not be replied to.