setText in a Time field


I am writing a test to populate a time field for scheduling an appointment. I am using WebUI.setText and passing in “12:12 PM” as the value. When the text executes, it ends up like this:


The code for the field looks like this:


Any ideas on how to handle this would be greatly appreciated.

I was able to get this working using sendKeys.

1 Like

I do the following:
//Sets object focus‘ObjectX’))
//Inputs text
WebUI.sendKeys(findTestObject(‘ObjectX’), ‘text’)