
Fields labeled with labels ending with ':' are not found
Reported by Ingo | August 6th, 2009 @ 04:59 AM
I have a field labeled 'Start week:'. Webrat is not able to find that field based on that label. This is due to the regexp in:
lib/locators/field_labeled_locator.rb:23
text(label_element) =~ /^\W*#{Regexp.escape(@value.to_s)}\b/i
The \b (word boundary) prevents the regexp from matching. I worked fine once I replaced '\b' with '\W*$'
Cheers,
Ingo
No comments found
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.
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.
People watching this ticket
Referenced by
-
282 Selenium label location strategy not working. This seems to be similar to ticket #275.