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

Finding element by class name should accept elements with other classes #3489

Closed
jachymb opened this issue Feb 9, 2017 · 1 comment
Closed

Comments

@jachymb
Copy link

jachymb commented Feb 9, 2017

A html element may have multiple classes like: <a class="foo bar">. Then when I use browser.find_elements_by_class_name('bar') or similar method the element is not found. I believe it should be.

@davehunt
Copy link
Contributor

davehunt commented Feb 9, 2017

This is covered already by finding elements by CSS selector:

browser.find_elements_by_css_selector('.bar')

@davehunt davehunt closed this as completed Feb 9, 2017
@lock lock bot locked and limited conversation to collaborators Aug 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants