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

Key: WTR-74
Type: New Feature New Feature
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Bret Pettichord
Reporter: Bret Pettichord
Votes: 3
Watchers: 0
Operations

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

Multiple Attribute Support - Non input elements

Created: 13/Jun/06 08:56 AM   Updated: 03/Jun/08 10:45 PM
Component/s: HTML Controls
Affects Version/s: 1.5.0/1.5.1
Fix Version/s: 1.5.0/1.5.1


 Description  « Hide
I am planning to add multiple attribute support to Watir. For example:

ie.div(:class => "MenuItem", :text => "Pulverize").click

The old syntax would continue to be supported.

ie.div(:text, "Pulverize").click

Moreover, you could now also specify single attributes using this new
"hash" syntax. Thus:

ie.div(:text => "Pulverize").click

These would allow any types of attributes to be mixed. In the case of
":index", the index would apply last. Therefore

ie.div(:class => "MenuItem", :index => 3).click

Would click the third div on the page whose class=MenuItem. In effect,
set of attributes would have an :index of 1 unless something else were
specified.



 All   Comments   Change History      Sort Order:
Bret Pettichord - 13/Jun/06 08:57 AM
This is now working for non-input controls. Revision 1037.

Bret Pettichord - 16/May/07 01:27 PM
I'm changing the scope of this ticket to only cover non-input elements and am marking it closed. We can track multiple-attribute support for other elements elsewhere.

Bret Pettichord - 16/May/07 01:27 PM
This is completed in 1.5 (some time ago)