I want to get all the WebElement information that has the class name "act" or "dact"
I use the line of code below to get all the class information for "act". Can someone help me use the OR condition in the class name?
List<WebElement> nL2 = driver.findElements(By.className("act"));
Something like that; so I donβt need to write two separate lines for each class.
//this is not working
List<WebElement> nL2 = driver.findElements(By.className("act | dact"));
Thanks!
css-selectors selenium webdriver
OverrockSTAR
source share