Search code examples
iosiphoneinstrumentsui-automationios-ui-automation

Select a date in UIDatePicker by UIAutomation?


I found that I can't do this by UIAPickerWheel.selectValue(), any idea?


Solution

  • you can pass your value in picker like this:

    Picker.wheels()[1].selectValue(Your_Value);
    

    in wheels()[1], [1] is your wheel number.