#268 new
Scott Woods

Feature/Patch: fields_by_xpath - return all fields that match a given xpath

Reported by Scott Woods | July 3rd, 2009 @ 04:49 PM

I found the current field_by_xpath to be useful, but it only returns the first field that matches the given xpath. I needed to retrieve all checkboxes on a page, so I added fields_by_xpath (plural), which returns an array of all fields that match the given xpath.

Here's my fork with the implementation, documentation, and specs:

http://github.com/woods/webrat/tree/fields_by_xpath

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

Tags

Pages