Calendar test automation [Helping]

@Russ_Thomas here is my issue
Hello guys !
how can i solve this test ?
the program clicks rightly on Date pick up field, but returns error

The date is OK with setText.
But an hour is KO, I don’t know how to specify if.

I tried this code to automate this action, but not working.

Thank you all !!!

You should try to remove the single quotes in the middle of your date and time so that it becomes one text, such as:

WebUI.setText(findTestObject(...), '04/03/2021, 19:00')
"and test that it was set"
WebUI.verifyElementAttributeValue(findTestObject(...), "value",  '04/03/2021, 19:00', 10)
1 Like

thank you very much brother, it works correctly for me.