title: I'm trying to match one of two values to an element
body: <p>It's a countdown 0-6 sometimes it idles//gets stuck at 0 I want it to wait till it's either &quot;6&quot; or &quot;0&quot; to do something.
  I have tried these just works on the 6 i imagine because its the first value</p>
  <pre><code>def DoSomething():
      WebDriverWait(driver, 20).until(
          EC.text_to_be_present_in_element((By.XPATH, &quot;/html/body/div[3]/div[2]/div[2]/div[2]&quot;), &quot;6&quot;),
          EC.text_to_be_present_in_element((By.XPATH, &quot;/html/body/div[3]/div[2]/div[2]/div[2]&quot;), &quot;0&quot;))
  
      print(&quot;Do Something&quot;)
  </code></pre>