title: Selenium -Select a future date from a date picker
body: <p>I am trying to select a future date from a date picker but not able to understand how to go about doing this.</p>
  
  <p>I need to select a date 14 days in advance but the date picker only shows one calendar month at a time. The picture has been uploaded to the following link.</p>
  
  <p><a href="https://i.stack.imgur.com/GNoK1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GNoK1.png" alt="enter image description here"></a></p>
  
  <p>What will be the logic of selecting a future date 14 days ahead?</p>
  
  <p>=================================================================</p>
  
  <h1>New Information</h1>
  
  <p>I looked more deeply in the element using firebug, the the datepicker is divided into row classes. Below is the export of the datepicker xml output:</p>
  
  <pre><code>    &lt;tr class="w27"&gt; &lt;tr class="w28"&gt; &lt;td id="startCalendarDiv_t_cell14" class="calcell wd0 d10 previous calcellleft"&gt;10&lt;/td&gt; &lt;td id="startCalendarDiv_t_cell15" class="calcell wd1 d11 previous"&gt;11&lt;/td&gt; &lt;td id="startCalendarDiv_t_cell16" class="calcell wd2 d12 previous"&gt;12&lt;/td&gt; &lt;td id="startCalendarDiv_t_cell17" class="calcell wd3 d13 previous"&gt;13&lt;/td&gt; &lt;td id="startCalendarDiv_t_cell18" class="calcell wd4 d14 previous"&gt;14&lt;/td&gt; &lt;td id="startCalendarDiv_t_cell19" class="calcell wd5 d15 today selected selectable"&gt; &lt;a class="selector" href="#"&gt;15&lt;/a&gt; &lt;/td&gt; &lt;td id="startCalendarDiv_t_cell20" class="calcell wd6 d16 selectable calcellright"&gt; &lt;/tr&gt; &lt;tr class="w29"&gt;
  
  &lt;td id="startCalendarDiv_t_cell21" class="calcell wd0 d17 selectable calcellleft"&gt;
  &lt;td id="startCalendarDiv_t_cell22" class="calcell wd1 d18 selectable"&gt;
  &lt;td id="startCalendarDiv_t_cell23" class="calcell wd2 d19 selectable"&gt;
  &lt;td id="startCalendarDiv_t_cell24" class="calcell wd3 d20 selectable"&gt;
  &lt;td id="startCalendarDiv_t_cell25" class="calcell wd4 d21 selectable"&gt;
  &lt;td id="startCalendarDiv_t_cell26" class="calcell wd5 d22 selectable"&gt;
  &lt;td id="startCalendarDiv_t_cell27" class="calcell wd6 d23 selectable calcellright"&gt;
  &lt;/tr&gt;
  &lt;tr class="w30"&gt;
  </code></pre>
  
  <p>If you look at today's date, it has the following property:</p>
  
  <pre><code>&lt;td id="startCalendarDiv_t_cell19" class="calcell wd5 d15 today selected selectable"&gt;
  </code></pre>
  
  <p>My thoughts were to find the element by class which has "today" in it and then identify the id, add 14 days to it and select it. Not sure how to get it done though.</p>
  
  <p>Also, the 'findElement' is not working. The 'findElement' code which I have written is:</p>
  
  <pre><code> //looking for the class
   driver.FindElement(By.ClassName("calcell wd5 d15 today selected selectable"));
  </code></pre>
  
  <p>Any clue what to do?</p>