setText in a Time field

Hello,

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:

image

The code for the field looks like this:

image

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
WebUI.click(findTestObject(‘ObjectX’))
//Inputs text
WebUI.sendKeys(findTestObject(‘ObjectX’), ‘text’)