Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

selector args to plural/collection methods #25

Open
jarib opened this issue Sep 2, 2010 · 1 comment
Open

selector args to plural/collection methods #25

jarib opened this issue Sep 2, 2010 · 1 comment
Labels

Comments

@jarib
Copy link
Owner

jarib commented Sep 2, 2010

browser.divs(:class => "foo") #=> DivCollection
@jarib
Copy link
Owner Author

jarib commented Sep 3, 2010

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant