YES!! Up until now, I have been a lurker on this list who could not use Watir--the main application that I support requires that I be able to use multiple attributes to specify a control.
Andrew McFarlane >From: "Bret Pettichord" <[EMAIL PROTECTED]> >Reply-To: [email protected] >To: [email protected] >Subject: [Wtr-general] Proposal for supporting multiple attributes >Date: Tue, 6 Jun 2006 17:54:07 -0500 > >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. > >Comments? >_______________________________________________ >Wtr-general mailing list >[email protected] >http://rubyforge.org/mailman/listinfo/wtr-general _______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
