How to select a date from calendar using webDriver script.

I want to pick a date with the help of calendar so that I can set the date in filter and fetch the record based on date selected.
Please suggest.


Default Asked on October 18, 2015 in Selenium WebDriver.
Add Comment
  • 3 Answer(s)

    You can use xpath for that.

    Default Answered on October 22, 2015.
    Add Comment

    If it is a drop down type of selection then you can use Select, in which u can use SelectByVisibleText() to select date.

    Train Answered on October 30, 2015.
    Add Comment


    Try to use setAttribute using JavascriptExecutor.


    Train Answered on November 13, 2015.
    Add Comment
  • Your Answer

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