title: How to select a Start and End date in a Datepicker using selenium webdriver?
body: <p>i have to generate a  report with a datepicker.
  I use Selenium webdriver with Eclipse.</p>
  
  <p>Firebug shows me a start date with xpath but when i execute with java, the xpath is never found. So i read some informations about the date picker but i'm not able to find the start date and end date.</p>
  
  <p>for example the start date should be : 20/08/2014 and end date=31-08-2014
  Can you help me, thank you.</p>
  
  <p>Here is the html code for the date picker:</p>
  
  <pre><code>&lt;div class="input-append date datepicker-start" data-date-format="yyyy-mm-dd"&gt;
              &lt;input class="span2 start-date" type="text" value="2014-08-20" placeholder="YYYY-MM-DD" size="16" name="start"&gt;&lt;/input&gt;
              &lt;span class="add-on"&gt;
                  &lt;i class="enticon-calendar"&gt;&lt;/i&gt;
              &lt;/span&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  
  &lt;/div&gt;
  &lt;div class="control-group"&gt;
  
      &lt;label class="control-label"&gt;
  
          End Date
  
      &lt;/label&gt;
      &lt;div class="controls"&gt;
          &lt;div class="input-append date datepicker-end" data-date-format="yyyy-mm-dd" data-date=""&gt;
              &lt;input class="span2 end-date" type="text" value="2014-08-31" placeholder="YYYY-MM-DD" size="16" name="end"&gt;&lt;/input&gt;
              &lt;span class="add-on"&gt;
                  &lt;i class="enticon-calendar"&gt;&lt;/i&gt;
              &lt;/span&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  
  &lt;/div&gt;
  </code></pre>
  
  <p>this example is not found i execute with java:</p>
  
  <p>driver.findElement(By.xpath("html/div/..")).click();</p>