I created a simple project using storyboards containing only UIDatePicker with mode = Date (so the dates look like "November" "28" "2011").
In UI Automation Tools, I'm trying to set the values of individual date pickers.
I can successfully use the selectValue () method to set the wheels, which contains numerical values, but cannot set the text value of the month, for example. "November".
It works.
target.frontMostApp().mainWindow().pickers()[0].wheels()[1].selectValue(12);
but this is not so.
target.frontMostApp().mainWindow().pickers()[0].wheels()[0].selectValue("November");
I get an error: Script threw an uncaught JavaScript error: - selectValue is not supported on a picker with undefined values
I did UIATarget.localTarget().frontMostApp().logElementTree()and see that the value is correct:
UIAPickerWheel: value: November rect: {{1, 142}, {146, 216}}
Please, someone can advise what I can do wrong, thank you very much.