celerity icon indicating copy to clipboard operation
celerity copied to clipboard

selector args to plural/collection methods

Open jarib opened this issue 14 years ago • 1 comments

browser.divs(:class => "foo") #=> DivCollection

jarib avatar Sep 02 '10 20:09 jarib

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.

jarib avatar Sep 03 '10 13:09 jarib