title: Click button id with Python Selenium
body: <p>I have the following HTML code from an &quot;accept-cookie&quot; window:</p>
  <pre><code>&lt;div id=&quot;_name-buttons&quot;&gt; 
      &lt;button id=&quot;_name-preferences&quot;&gt;[...]&lt;/button&gt; 
      &lt;button id=&quot;_name-accept&quot;&gt;[...]&lt;/button&gt;
  </code></pre>
  <p>I am trying to use Selenium to click on the button <code>_name-accept</code>, namely accept the cookies.
  My code does the following:</p>
  <pre><code>from selenium.webdriver.support.ui import WebDriverWait 
  from selenium.webdriver.support import expected_conditions as EC
  from selenium.webdriver.common.by import By
  
  ...
  
  WebDriverWait(driver, 10).until(EC.element_to_be_clickable((By.ID, '_name-accept'))).click()
  </code></pre>
  <p>however it doesn't work and I have this error:</p>
  <pre><code>selenium.common.exceptions.TimeoutException: Message: 
  Stacktrace:
  WebDriverError@chrome://remote/content/shared/webdriver/Errors.jsm:183:5
  NoSuchElementError@chrome://remote/content/shared/webdriver/Errors.jsm:395:5
  element.find/&lt;/&lt;@chrome://remote/content/marionette/element.js:300:16
  </code></pre>
  <p>How can I click that button id? Thank you</p>