jarib / celerity

This project is no longer maintained.
http://celerity.rubyforge.org/
GNU General Public License v2.0
206 stars 38 forks source link

selector args to plural/collection methods #25

Open jarib opened 14 years ago

jarib commented 14 years ago
browser.divs(:class => "foo") #=> DivCollection
jarib commented 14 years ago

As part of the window switching stuff, I've changed so that a selector argument is allowed and passed to the ElementCollection constructor. So what remains is actually filtering the elements.

It looks like this is mostly implemented in ElementLocator - at the end of #find_by_conditions we do actually find all matching elements when :index is passed by calling #elements_by_idents. The ElementLocator class badly needs refactoring though.