title: How to use OR Condition in selenium findElements() method for any selector?
body: <p>I want to get all WebElement information having class name "act" or "dact"</p>
  
  <p>I am using below line of code to get all class information for "act". Can any one help me to use OR condition in class name?</p>
  
  <p><code>List&lt;WebElement&gt; nL2 = driver.findElements(By.className("act"));</code></p>
  
  <p>Something similar to this; so that I don't have to write two separate  line for each class.</p>
  
  <p><code>//this is not working</code></p>
  
  <p><code>List&lt;WebElement&gt; nL2 = driver.findElements(By.className("act | dact"));</code></p>
  
  <p>Thanks!</p>