title: Can not find button. Selenium java
body: <p>I have this code:</p>
  <p><img src="https://i.stack.imgur.com/nMa5O.png" alt="HTML CODE" /></p>
  <p>Then using selenium I write this:</p>
  <pre><code>driver.findElement(By.className(&quot;extra-delivery-item&quot;)).click();
  </code></pre>
  <p>The question is why does selenium tell me:
  <em><strong>no such element: Unable to locate element: {&quot;method&quot;:&quot;css selector&quot;,&quot;selector&quot;:&quot;.extra-delivery-item&quot;</strong></em></p>
  <p>P.S. I have already located some buttons and successfully clicked on them, everything works, except that button.</p>