title: Selecting h2 element via XPath
body: <p>I would need to access this element via XPath:</p>
  <pre><code>&lt;section class=&quot;section&quot;&gt;
    &lt;div class=&quot;help-info&quot;&gt;
      &lt;div class=&quot;container&quot;&gt;
        &lt;div class=&quot;tile tile--bottom&quot;&gt;
          &lt;h2 class=&quot;force--h4&quot;&gt;Sorry, xxx could not be found or reached (error code 404) &lt;/h2&gt; ==$0
  </code></pre>
  <p>I tried with</p>
  <pre><code>wait.until(EC.visibility_of_element_located((By.XPATH, &quot;//h2[text()='Sorry, xxx could not be found or reached (error code 404)']&quot;)))
  </code></pre>
  <p>But actually it does not look at the right element.</p>