title: XPath selector for matching multiple classes
body: <p>I've been searching for the past 30 minutes or so, but I can't seem to an answer to how to create an xpath selector that will match multiple classes.</p>
  
  <p>After reading this: <a href="https://stackoverflow.com/questions/1390568/xpath-how-to-match-attributes-that-contain-a-certain-string">How can I match on an attribute that contains a certain string?</a></p>
  
  <p>The closest solution I can find is:</p>
  
  <pre><code>//div[contains(@class,'atag') and contains(@class ,'btag')]
  </code></pre>
  
  <p>However, one of the comment suggests that it would also match:</p>
  
  <pre><code>&lt;div class="Patagonia Halbtagsarbeit"&gt;
  </code></pre>
  
  <p>What XPath selector should I use to select a div with multiple classes?</p>
  
  <p>Example:</p>
  
  <pre><code>&lt;div class="fl badge bolded shadow"&gt;
  </code></pre>