Selenium Automation for AJAX Calendar Control
There are different types of calendar controls in web as
There are different types of calendar controls in web as
- Ajax Calendar Control
- JQuery Calendar ( DatePicker ) control
- BootStrap Calendar control
There is no built in selenium automation support for any of above calendar control. We you need to write a logic to handle all case in selecting a date.
Here, I am going to discuss the approach on how to automate AJAX Calendar Control
Below image explains the locator for different controls (elements) in calendar.
Create Utility Page Class for Calendar Control
Now just use above class in test case.
That's All.
You Can download full source code of project here: https://github.com/vikaspune/AJAX-Calendar-Control-Automation/archive/master.zip
No comments:
Post a Comment