#248 awaiting-merge
François Beausoleil

[PATCH] Error message from FieldLabeledLocator was subpar

Reported by François Beausoleil | May 22nd, 2009 @ 03:57 PM

Grab this commit: http://github.com/francois/webrat/commit/9527e4509f3faba9c1ab7ce6b4...

The patch:

diff --git a/lib/webrat/core/locators/field_labeled_locator.rb b/lib/webrat/core/locators/field_labeled_locator.rb
index 8071be2..a4ef781 100644
--- a/lib/webrat/core/locators/field_labeled_locator.rb
+++ b/lib/webrat/core/locators/field_labeled_locator.rb
@@ -29,7 +29,7 @@ module Webrat
       def error_message
-        "Could not find field labeled #{@value.inspect}"
+        "Could not find field labeled #{@value.inspect}: check that the label's for attribute matches the input/select element's ID"
       def text(element)

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