Date Picker

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 .

Date Picker

Train Asked on August 21, 2014 in Selenium WebDriver.
Add Comment
  • 1 Answer(s)

    Hi Neoni,

    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. 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.


    Professor Answered on August 21, 2014.
    Add Comment
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.