Issue Details (XML | Word | Printable)

Key: WTR-193
Type: New Feature New Feature
Status: Closed Closed
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: 11/Nov/09 12:47 PM   Resolved: 08/Oct/08 06:03 PM
Component/s: None
Affects Version/s: None
Fix Version/s: 1.6.0


 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).



Sort Order: Ascending order - Click to sort in descending order
michael@hinnerup.net added a comment - 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 added a comment - 08/Oct/08 06:03 PM

Fixed with commit 1499


Jeff Fry added a comment - 11/Nov/09 12:47 PM

Working now, thanks!

irb(main):011:0> b.text_field(:value => /Call of Duty:/, :index => 2).flash
=> nil