title: How to find elements with two possible class names by XPath?
body: <p>How to find elements with two possible class names using an <code>XPath</code> expression?</p>
  
  <p>I'm working in Python with <code>Selenium</code> and I want to find all elements which <code>class</code> has one of two possible names.</p>
  
  <ol>
  <li>class="item ng-scope highlight"</li>
  <li>class="item ng-scope"</li>
  </ol>
  
  <p><code>'//div[@class="list"]/div[@class="item ng-scope highlight"]//h3/a[@class="ng-binding"]'</code>  </p>
  
  <p>Of course I can do two separate searches and concat results into one list. But there is a more simple and efficient way. Maybe by using <code>|</code>.</p>