[rspec-users] Can't use Cucumber with Webrat and Selenium

JDS jds340 at gmail.com
Wed May 13 03:53:24 EDT 2009

Well I can't help you but I do have a similar problem. In my case
Cucumber-Selenium works, Cucumber-Webrat works but Cucmber-Webrat-
Selenium doesn't work because Webrat issues requests to www.example.com
and Selenium starts up a mongrel on localhost:3001, connects to it via
Firefox and then throws up when it gets a request to go to www.example.com.
I need to find a way to change the host name that Webrat uses when it
connects via Selenium.

On 5 Apr, 15:23, Enrico Listemann <li... at ruby-forum.com> wrote:
> Hi,
> I followed the instructions athttp://wiki.github.com/aslakhellesoy/cucumber/setting-up-seleniumto getSeleniumandWebratto work with Cucumber. I have no problems usingWebratbut when I switch to useSelenium, I get the following error
> message when I try to access the browser(e.g. calling visit(login_path))
> in a step definition.
> Die angeforderte Adresse ist in diesem Kontext ungültig. - connect(2)
> E:/SOFTWAREENTWICKLUNG/ruby/lib/ruby/1.8/timeout.rb:56:in `timeout'
> (eval):2:in `visit'
> (for those who don't speak german: The requested address is invalid in
> this context.)
> I also tried to use Cucumber andSeleniumwithoutWebratand it works
> without any problems.
> I'm using Rails 2.3.0, Cucumber 0.2.3,Webrat0.4.3 and RSpec 1.2.2 on a
> WinXP machine.
> I would be very pleased if anyone had an idea about the reason for this
> failure.
> Enrico
> --
> Posted viahttp://www.ruby-forum.com/.
> _______________________________________________
> rspec-users mailing list
> rspec-us... at rubyforge.orghttp://rubyforge.org/mailman/listinfo/rspec-users

More information about the rspec-users mailing list