title: Xpath: Find element with class that contains spaces
body: <p>So I have elements that look like this</p>
  
  <pre><code>&lt;li class="attribute  "&gt;&lt;/li&gt; # note the space
  &lt;li class="attribute"&gt;&lt;/li&gt;
  </code></pre>
  
  <p>Using the xpath <code>//li[@class="attribute"]</code> will get the second element but not the first. How can I get both elements with the same xpath?</p>