baba_k
14 years agoOccasional Contributor
Issue with drop down/ calender field
Hi
We are testing an windows application and facing a problem with a date field which is a drop down(Combo box), we are trying to enter the system date instead of selecting today's date from drop down. We are able to capture the system date and able to pass the date into the date field but after entering the date , It is being erased automatically. System date captured is matching with the date format of the date field in our application.Below is the code
We are testing an windows application and facing a problem with a date field which is a drop down(Combo box), we are trying to enter the system date instead of selecting today's date from drop down. We are able to capture the system date and able to pass the date into the date field but after entering the date , It is being erased automatically. System date captured is matching with the date format of the date field in our application.Below is the code
Currentdate=aqdatetime.Today()
Call Aliases.Agresso.Agresso_MainWindow1.Agreement_Screen.Agreement_tab.auiinvhead_start_date.TextBoxMaskBox.SetText(currentdate)
Call Aliases.Agresso.Agresso_MainWindow1.Agreement_Screen.Agreement_tab.auiinvhead_start_date.TextBoxMaskBox.Keys("[Tab]")
Please help us in resolving this issue
Thanks & Regards
Baba k