title: Finding/locating a clickable text by xpath in div/span format
body: <p>I used the following line to click the Availability Grid button, but it failed to locate the element.
  Class Sarsa-button-content is used everywhere so, I added text together to make it unique. However, it couldn't find it. What am I missing?</p>
  <pre><code>WebDriverWait(driver, 10).until(EC.element_to_be_clickable((By.XPATH, &quot;//a[@class='sarsa-button-content']/span[text()='Availability Grid']&quot;))).click()
  </code></pre>
  <pre><code> &lt;div class=&quot;sticky-top-wrapper&quot; style=&quot;top: 80px;&quot;&gt;
    &lt;div class=&quot;site-filter-container&quot; id=&quot;site-filter-container&quot;&gt;
      &lt;a data-component=&quot;Button&quot; class=&quot;sarsa-button view-by-availability-grid--button-tracker sarsa-button-primary sarsa-button-sm&quot; href=&quot;/site/123456/availability&quot;&gt;
        &lt;span class=&quot;sarsa-button-inner-wrapper&quot;&gt;
          &lt;span class=&quot;sarsa-button-content&quot;&gt;Availability Grid&lt;/span&gt;
  </code></pre>