#228 open
Brandt Kurowski

Improve Webrat::Selenium error messages

Reported by Brandt Kurowski | April 23rd, 2009 @ 11:49 AM | in 1.0

Webrat::Selenium failures aren't as informative as those from Webrat::Rails, for example if I have a missing form field and am running with "config.mode = :rails", then on the console I see:

And I fill in "Description" with "Foo" # features/step_definitions/webrat_steps.rb:22
  Could not find field: "Description" (Webrat::NotFoundError)
  (eval):2:in `/^I fill in "([^\"]*)" with "([^\"]*)"$/'
  features/file_upload.feature:24:in `And I fill in "Description" with "Foo"'

but if I change to "config.mode = :selenium" I see:

And I fill in "Description" with "Foo"          # features/step_definitions/webrat_steps.rb:22
  ed out after 5000ms (Selenium::CommandError)
  /opt/local/lib/ruby/1.8/timeout.rb:62:in `timeout'
  /opt/local/lib/ruby/1.8/timeout.rb:93:in `timeout'
  (eval):2:in `/^I fill in "([^\"]*)" with "([^\"]*)"$/'
  features/file_upload.feature:24:in `And I fill in "Description" with "Foo"'

which isn't very helpful when debugging.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Ruby Acceptance Testing for Web applications.

Shared Ticket Bins

People watching this ticket

Pages