here is the code:
<div class="padding-tlb">
....Some code....
</div>
<article class="non-article-login">
<div class="one-fourth-percent columns-percent"> </div>
<div class="one-half-percent columns-percent">
<div class="one-fourth-percent columns-percent">
User ID
</div>
</div>
</div>
</article>
I want to check if exist the class "one-fourth-percent columns-percent".
WebElement test = driver.findElement(By.className("one-fourth-percent columns-percent"));
But doesn't works, here is the error:
org.openqa.selenium.InvalidSelectorException: The given selector one-fourth-percent columns-percent is either invalid or does not result in a WebElement. The following error occurred: InvalidSelectorError: Compound class names not permitted
But if I try to find the article class - it's fine. It's look like, everything outside of article class works. This is FINE:
WebElement test = driver.findElement(By.className("padding-tlb"));
How to get inside this article class, and check the values?