title: How to handle calendar popup using Selenium WebDriver with Java?
body: <p>How can I select date from a calendar popup like this gender (i.e 24/04/2015 from calendar) using Selenium WebDriver with Java?</p>
  
  <p>I have tried this:</p>
  
  <pre><code>package com.Automation;
  
  import org.openqa.selenium.By;
  import org.openqa.selenium.WebDriver;
  import org.openqa.selenium.firefox.FirefoxDriver;
  
  public class CalendarPopup {
  
      /**
       * @param args
       */
      public static void main(String[] args) {
          WebDriver driver = new FirefoxDriver();
          driver.get("http://www.yatra.com/");
          driver.findElement(By.id("//div[2]/ul[3]/li[1]/i")).click();
          driver.findElement(By.id("a_2015_4_25")).click();
      }
  }
  </code></pre>