UI Testing Cannot Interact with UIPickerView

Originator:joseph.masilotti
Number:rdar://21854782 Date Originated:16-Jul-2015 11:15 AM
Status:Duplicate/20577276 Resolved:
Product:Developer Tools Product Version:Xcode 7 Beta 3
Classification:Enhancement Reproducible:Always
 
Summary:
When using UI Testing on Xcode 7 Beta 3 there is no way to interact with a UIPickerView.

Steps to Reproduce:
1. Create a new Single View application
2. Add a UIPickerView to Main.storyboard
3. Wire up a data source and supply rows
4. Add a UI Testing test to interact with the picker

    XCUIApplication *app = [[XCUIApplication alloc] init];
    [app launch];
    [app.pickers[@"Three"] tap];

See attached example project and run the UI Tests.

Expected Results:
The test is able to tap or select a row in the picker.

Actual Results:
The test fails with the following error message:

UI Test Activity: 
Assertion Failure: UI Testing Failure - The operation couldn’t be completed. No matches found for "Three" Picker, input was {(
    Picker 0x7f9cf8b39fe0: traits: 8589934592, {{0.0, 225.5}, {375.0, 216.0}}
)}



Version:
Xcode 7 Beta 3

Notes:


Configuration:


Attachments:
'PickerTester.zip' was successfully uploaded.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!