I am trying to set date on a Java Application. below is the image
The part in red is as :
JavaDialog("tagname:=DialogM").JavaList("index:=2")
- The part in Green is as :
JavaDialog("tagname:=DialogM").JavaObject("tagname:=JCalendarField\$DayList", "Index:=0")
I've tried rather vainfully to set date here. I tried using "select", "click" with 1 and 2 and it didn't work. Also tried use SendKeys method (Just in case) didn't work either. I'm out of ideas on what i would do to achieve this. Appreciate any help here
The issue is that you have a generic JavaObject instead of a JavaCalendar object. So, you won't benefit of JavaCalendar specific methods like "SetDate" which will select a specific date.
Have you tried to do a record and see the UFT's output?