Forum Discussion
Hi,
While this might not work in your specific case, but it worked for me in many cases.
-- Enter manually some date into the field;
-- Locate the field using Object Spy and investigate it in the Object Browser. Your goal is a property that contains entered date. (Usually it is named as 'value'.)
Now in test code you should do the following:
-- Locate the field and assign required date value to the found property (e.g. <control>.value = '31/01/2019');
-- Click the control or press Alt-Down or perform any other action that will open date picker control;
-- When opened, the date picker control usually has the entered date pre-selected;
-- Press Enter key to confirm date selection in the picker. This should trigger internal page code that will do all required actions/assignments/etc.;
-- After the above sequence the control usually contains entered value that is correctly recognized and processed by page script code.
Related Content
Recent Discussions
- 17 hours agoAivanitskiy
- 20 hours agonastester