Forum Discussion
Hi,
The implementation of clicking on particular date depends on how the date is represented in you datepicker - separate days, months and years, or may be some elements are grouped by some logic. It is difficult to say how to do it without seeing the web element and its properties.
Usually direct setting of the date (using JS or element's value attribute) - the most easy, fast and reliable way.
For the most part, keep in mind, you're not testing the component itself. It sounds like it's a pretty standard component that developers drop in. Your goal is to test the functionality of what happens when a particular date is set. So, setting the value is an efficient way of doing so without getting bogged down in trying to figure out how to automate the component.
Related Content
Recent Discussions
- 6 hours agoSvetaG