I have 2 possible divs.
<div class='a b'></div>
and
<div class='c d'></div>
Is there a way to check if div element has 2 classes a and b?
I use Ruby, Capybara and XPath for selecting elements but css is fine if it could solve problem.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This css selector should work in capybara:
which will match
<div class="a b">but not<div class="a">