Micro Focus QTP (UFT) Forums
select a date from pop-up calendar - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: select a date from pop-up calendar (/Thread-select-a-date-from-pop-up-calendar)



select a date from pop-up calendar - Dertjon - 05-12-2014

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.


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.


RE: select a date from pop-up calendar - Ankur - 05-13-2014

What is the issue you are facing?