title: How to click this element using Python and Selenium?
body: <p>I have the following HTML, which I have to click</p>
  
  <pre><code>&lt;button aria-label="Nur Ergebnisse für Inhalte anzeigen" id="ember912" class="search-vertical-filter__filter-item-button artdeco-button artdeco-button--muted artdeco-button--2 artdeco-button--tertiary ember-view" type="button"&gt;
  &lt;!----&gt;
  &lt;span class="artdeco-button__text"&gt;
      Inhalte
  &lt;/span&gt;
  &lt;/button&gt;
  </code></pre>
  
  <p>id is dynamic.</p>
  
  <p>I tried like this</p>
  
  <pre><code>WebDriverWait(driver, delay).until(
                  EC.presence_of_element_located((By.XPATH, "//button[@aria-label='Nur Ergebnisse für Inhalte anzeigen']/button[@class='search-vertical-filter__filter-item-button artdeco-button artdeco-button--muted artdeco-button--2 artdeco-button--tertiary ember-view' and text()='Nur Ergebnisse für Inhalte anzeigen']"))).click()
  </code></pre>
  
  <p>and like this</p>
  
  <pre><code>WebDriverWait(driver, delay).until(
                  EC.presence_of_element_located((By.XPATH, '//span[contains(text(), "Inhalte")'))).click()
  </code></pre>
  
  <p>and like this</p>
  
  <pre><code>WebDriverWait(driver, delay).until(
                  EC.presence_of_element_located((By.XPATH, '//span[contains(text(), "Inhalte") and @class="artdeco-button__text"]'))).click()
  </code></pre>
  
  <p>but it does not work, I always get TimeoutException</p>
  
  <p>Appreciate any help </p>