title: Datepicker code not working for Yatra website
body: <p>I tried the below code, now the month is selected perfectly but no date is selected.
  Can someone help me to understand what I am missing.</p>
  <pre><code>driver.findElement(By.id(&quot;BE_flight_origin_date&quot;)).click()  ;           
          Thread.sleep(2000);
          
          WebElement element = driver.findElement(By.xpath(&quot;//div[@class='month-title']&quot;));
          JavascriptExecutor js = (JavascriptExecutor) driver;
               
          while(!element.getText().contains(&quot; July' 21 &quot;))
          js.executeScript(&quot;arguments[0].scrollIntoView(true);&quot;, element);
          Thread.sleep(500); 
          List&lt;WebElement&gt; getCalendardays = driver.findElements(By.xpath(&quot;//tbody[@class='BE_flight_origin_date']//tr//td&quot;));
          for(int i=0;i&lt;getCalendardays.size();i++)
          {
              String sdays = getCalendardays.get(i).getText();
              System.out.println(sdays);
              if(sdays.contentEquals(&quot; 14 &quot;))
              {
                  getCalendardays.get(i).click();
                  System.out.println(&quot;The date has been clicked&quot;);
                  break;
              }
          }   
  </code></pre>