Forum Discussion
baxatob Thank you so much, its working fine for me. It will be really helpful if you could help me out to do it by clicking on particulate date from calender picker.
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.
- tristaanogre6 years agoEsteemed Contributor
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
- 2 years ago
- 4 years ago
Recent Discussions
- 2 days ago