History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: WTR-193
Type: New Feature New Feature
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Jeff Fry
Votes: 13
Watchers: 4
Operations

If you were logged in you would be able to see more operations.
Watir

Support selecting input elements via multiple attributes

Created: 11/Jan/08 07:27 PM   Updated: 08/Oct/08 06:03 PM
Component/s: None
Affects Version/s: None
Fix Version/s: 1.6.0

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown


 Description  « Hide
As of Watir 1.5, one can select non-input elements by multiple attributes, e.g.
  $ie.link(:text => 'Employees', :index => 2).click
See feature WTR-74 for details.

This has yet to be implemented for input elements (e.g. text_field).



 All   Comments   Work Log   Change History      Sort Order:
Michael Schøler - 06/Jun/08 06:04 AM
This is a bit annoying. On many pages array inputs are used, and one cannot perform unittests with WATIR, e.g.:

<input type="checkbox" name="checkboxlist"> something
<input type="checkbox" name="checkboxlist"> some other thing
<input type="checkbox" name="checkboxlist"> some entirely different thing

irb> ie.checkbox(:name, "checkboxlist").set
only checks the first box

irb> ie.checkbox(:name, "checkboxlist", :index => 2 ).set
generates an error (unable to locate)

Bret Pettichord - 08/Oct/08 06:03 PM
Fixed with commit 1499