title: How to select specific date with Date Picker In Selenium WebDriver
body: <p>I am working on Selenium WebDriver and using Java. I want to select the date range from the date picker showing in below screen. </p>
  
  <p>Currently, I am able to select date picker and change month selection but unable to select date values (i.e - 12/10/2018)</p>
  
  <p>Datepicker selection</p>
  
  <p><a href="https://i.stack.imgur.com/rQ7kN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rQ7kN.png" alt="X"></a></p>
  
  <p>Here the Java Code I have written:</p>
  
  <pre><code>    driver.findElement(By.linkText("Leave")).click();
      driver.findElement(By.linkText("Apply Leave")).click();
      Thread.sleep(2000);
      driver.findElement(By.id("LeaveStartDate")).click();
      driver.findElement(By.className("next")).click();
      driver.findElement(By.className("day")).sendKeys("12");
      driver.findElement(By.id("LeaveEndtDate")).click();
      driver.findElement(By.className("next")).click();
      driver.findElement(By.className("day")).sendKeys("12/11/2018");
  
  }
  }
  </code></pre>