Date is not selecting from Calendar From Module-18 Part-4 | Selenium Forum
P
PRAVEEN K Posted on 26/01/2019

Hi

01. My code is not selecting the date when we click from calendar icon, could you please correct me...code is attached

02. I'm not clear below from your recording

         A.  wd.findElement(By.xpath("td[text()='"+day+"']")).click();

         B.   what is the meaning if >0 ? given in code

                if(selected.compareTo(current) > 0)

 

         C. is below selected xpath is meaningful, means won't it change in future

              wd.findElement(By.xpath("//*[@id='datepicker']/table/tbody/tr[6]/td[6]/div")).click();

 

Thanks & Regards,

 

 


K
Kam Replied on 28/01/2019

I have issue , If date is twice in Calender like in March 2019, Feb 24 through Feb 28 is showing on top and March 24 through 2 is on bottom, Whwn I am using code it taked Feb dates Not march dates


A
Ashish Thakur Replied on 04/02/2019

Please post your code or project out here