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

Defaulting findElorEls to single element #53

Conversation

scottdixon-zz
Copy link

@imurchie on second thoughts, I think the benefit from defaulting to false (i.e. requesting a single element) will be outweighed by potential confusion for the user.

The old API had elementByClassName and elementsByClassName. If these are removed, it might make sense to train the user from the beginning to specify single or multiple elements.

I'd be curious to get your thoughts.

@jlipps
Copy link
Member

jlipps commented Oct 13, 2015

users won't be using this API directly so I don't think it matters much. they'll be hitting the session via an actual client which this change doesn't affect.

@imurchie
Copy link
Contributor

I agree. If it makes the test code feel cleaner, I'm fine with the change.

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

Successfully merging this pull request may close these issues.

4 participants