Pop up calendar's date selection scripting in UFT 12.5 [For web based application]
I am having a problem when recording the calendar date from a pop-up. The date records as a Link, when the script is run the calendar appears and the date is selected, but the click (which removes the calendar from view is not happening. The date, in this case day '30' is being recorded as text. Also, how can I get this date to be dynamic?
Here is the script that's recorded:
The calendar functionality can be achieved in the following steps:
Wrtie Date Utility function to convert a given date in to 3 parts 'year', month and day
Should do the following:
Convert the date in to three
Month is 10 which corresponds to 'Oct' in calendar
Now click on the small calendar icon to open the calendar.
Now create descriptions for values in drop down of year and month
Select the appropriate year and month from the values you converted
Finally create collection of objects for days in that month.
Loop through the child objects, if you find the date you looking for click on that date(child object)