title: Calendar picker with Selenium and Python
body: <p>I want to click a day of the calendar(doesn't matter what day) if it's available</p>
  
  <p>There are days that are availables and other that they aren't. </p>
  
  <p>The calendar is made with <code>table</code> tag, each <code>td</code> tag, if it isn't available ,  has a class <code>notSelectableDay</code>.</p>
  
  <p>I have to reload the page till the program found a available day which has the class <code>selectableDay</code>. </p>
  
  <p>The program structure its in this other question i made <a href="https://stackoverflow.com/questions/43164381/if-else-loop-on-python-checking-a-class-name-with-selenium/43164409#43164409">if else loop on Python. Checking a class name with Selenium</a></p>
  
  <p>Could this work:</p>
  
  <pre><code>if driver.find_elements_by_class_name("selectableDay"):
  
      driver.find_element_by_class_name("selectableDay").click()
  </code></pre>
  
  <p>I`ve made another question more clearly explainded :</p>
  
  <p><a href="https://stackoverflow.com/questions/43422464/i-got-a-calender-picker-how-to-select-the-available-day-with-selenium-and-pytho?noredirect=1#comment73925168_43422464">I got a calender picker. How to select the available day with Selenium and Python?</a></p>