if we want to dynamically pass the data through excel. we have used the excel sheet to input data for the same calendar format but we are not getting proper selection for the date we are mentioning in ” Date Time “in the following code .
First thing that I want to point out is that you have over complicated you code. The date string management is very inefficient. The problem is with the data string that you are creating. This date string is different from the ID of the element. Please pu tya break point and verify what your calculated date string is coming.
goibibo.com has one of the simplest and most QA friendly date time picker. Any date element is represented by and id valued the date it represents. For e.g. an element which shows date 12 of august 2014 will have an id of 20141208.
I tried it for 1 of September and I am able to do it by writing these four lines
FirefoxDriver ffDriver = new FirefoxDriver();
Please correct your date identification logic and rerun after simplifying your program. also, graded out dates are not selectable.