title: Python & Selenium Cannot select date in datepicker
body: <p>I am very new to Python and learning how to scrap data with Selenium.</p>
  
  <p>I encounter a problem when trying to pick a date from a datepicker form on monmondo.com (for the sake of example)</p>
  
  <p>This is the farthest I managed to get: (edit: I managed to go a little further than before but I am still stuck)</p>
  
  <pre><code>from selenium import webdriver
  browser = webdriver.Firefox()
  
  browser.get("https://www.momondo.com")
  browser.implicitly_wait(5)
  date = browser.find_element_by_name("ctl00$Content$ctl04$SearchFormv8$SearchFormFlight$InputDepart").click()
  browser.implicitly_wait(5)
  test= browser.find_elements_by_xpath("//*['ui-datepicker-div']//td[@data-year='2017'][@data-month='2']/a[@class='ui-state-default'][@href='#'][text()='20']")
  test[0].click()
  </code></pre>
  
  <p>Which results in</p>
  
  <pre><code>selenium.common.exceptions.ElementNotVisibleException: Message: 
  </code></pre>
  
  <p>I've tester the xpath with firepath and it seems to work correctly as it is found in the page's source code.</p>
  
  <p>The webpage structure of the calendar's day in the source code is:</p>
  
  <pre><code>&lt;td class=" " data-handler="selectDay" data-event="click" data-month="2" data-year="2017"&gt;&lt;a class="ui-state-default" href="#"&gt;20&lt;/a&gt;&lt;/td&gt;
  
      &lt;a class="ui-state-default" href="#"&gt;20&lt;/a&gt;
  </code></pre>
  
  <p>My vague guess is that the data-even click triggers the selection but it seems to be located a step above the class where I can find the number. This being said I am not sure it's the case.</p>
  
  <p>I would really appreciate if you could help a newcomer like me!</p>
  
  <p>Thanks!</p>