05-12-2014, 07:42 PM
Hi everyone. I need some help. Im trying to write a function for selecting the date on a pop-up calendar. The textbox is unwritable. You need to select the date from the calendar. So if I give a dat (24-06-2014 ) in the function it should automatically select the date on the calendar.
Attached is a screenshot of the calendar.
Here are the steps recorded with object spy.
Thanks for your help.
Greet.
Attached is a screenshot of the calendar.
Here are the steps recorded with object spy.
Code:
Browser("BUP Portal").Page("Agreement Create_2").Image("icon_calendar").Click
Browser("BUP Portal").Page("Agreement Create_2").WebList("cpMonth").Click
Browser("BUP Portal").Page("Agreement Create_2").WebList("cpMonth").Select "July"
Browser("BUP Portal").Page("Agreement Create_2").WebList("cpYear").Click
Browser("BUP Portal").Page("Agreement Create_2").WebList("cpYear").Select "2015"
Browser("BUP Portal").Page("Agreement Create_2").Link("16").Click
Thanks for your help.
Greet.