Wednesday, November 29, 2017

Calendar Control / DatePicker Automation with Selenium Webdriver

Selenium Automation for AJAX Calendar Control

There are different types of calendar controls in web as

  1. Ajax Calendar Control
  2. JQuery Calendar ( DatePicker ) control
  3. 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.



No comments:

Post a Comment