title: How do I click on active day on date picker using selenium python?
body: <p>So there are multiple calendars (datepickers) on the page and I have managed to click on the desired calendar.
  <a href="https://i.stack.imgur.com/zxnbf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zxnbf.png" alt="enter image description here" /></a></p>
  <p>I want to click on the active date (current date). class=&quot;day active&quot;
  How can I find this element after clicking on desired calendar glyphicon?</p>
  <p>P.S. when I copy selector for this- I am getting</p>
  <pre><code>body &gt; div:nth-child(27) &gt; div.datepicker-days &gt; table &gt; tbody &gt; tr:nth-child(4) &gt; td.day.active
  </code></pre>
  <p>And when I inspect element and search td.day.active, I am able to reach that element.
  <a href="https://i.stack.imgur.com/eXIKV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eXIKV.png" alt="enter image description here" /></a></p>
  <p>So I have used below syntax for clicking on it.</p>
  <pre><code>WebDriverWait(driver, 30).until(lambda driver: driver.find_element_by_css_selector('td.day.active')).click()
  </code></pre>
  <p>But getting <code>ElementNotVisibleException</code></p>
  <p>I want a generic script to do this. I want to select the active date on this calendar.
  clicking on xpath doesnt work as there is no absolute path to it.</p>