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

Find elements by css class #28

Closed
adeel41 opened this issue Nov 18, 2014 · 1 comment
Closed

Find elements by css class #28

adeel41 opened this issue Nov 18, 2014 · 1 comment

Comments

@adeel41
Copy link
Contributor

adeel41 commented Nov 18, 2014

An element can have more than one css class specified which means in order to find such elements, currently we have to use

FindElementsByCssSelector("[class ~='MyCssClass']") 

but I think it can be simplified if we can do something like

FindElementsByCssClass("MyCssClass")

where the html file contains

<div class='MyCssClass someOtherClass oneMore'></div>
@jrote1
Copy link
Contributor

jrote1 commented Nov 18, 2014

Can be acheived by

FindElementsByCssSelector(".MyCssClass")

@jrote1 jrote1 closed this as completed Nov 18, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants