#323 new
Bryan Helmkamp

Field Locators Are Case Sensitive

Reported by Bryan Helmkamp | January 17th, 2010 @ 06:30 PM

Copied from GitHub issue #39

Created 11 days ago by tylerhunt

Considering an input like , Webrat won't be able to find this field using the XPath ".//input[@type = 'text']". The workarounds for this are pretty dirty, but something like ".//input[translate(@type, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz') = 'text']" does get the job done.

Comments

tylerhunt January 06, 2010

Looks like Webrat::Field#field_class will also have to be updated to lowercase the values checked in the case statements. I'll try to get a patch put together over the next day or so.

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.

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