Unable to perform action on second date-picker of the range value
To fetch a report I am giving date range using two datepickers . first one is "From date" and 2nd is "To date". I have a function of date picker which selects a date from date-picker.My function easily selects first date i.e From date but selecting To Date 2nd date picker gives me the error (attached) which is window is invisible and thus cannot be activated.
Testcomplete is expecting first datepicker i.e From Datepicker to be reopen to perform action on it. and thats becuase Dev team is using same datepicker control for both dates (from and to) and thus my function expects first control found to be reopened. So both controls have same object name.
What else should I do to select a date from "To datepicker" using my function? keeping in mind following things:
- Its not a textbox to insert a date directly by changing text. its a dropdown not a textbox. screenshot attached.
- I tried changing text aswell, it does change the text on the dropdown button but its only change the text and calendar still shows the previous date. Anything I can do to change text only and gives me the effect on calendar aswell ?