How to interact with a UIPickerView using UI Testing in Xcode 7.
Swift
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
App
UIPickerViewTester.xcodeproj
UITests
.gitignore
README.md

README.md

UIPickerViewTester

This is an example of how to interact with a UIPickerView using UI Testing in Xcode 7. -adjustToPickerWheelValue: method was added in Beta 6. In general,

let app = XCUIApplication()
app.launch()
app.pickerWheels.element.adjustToPickerWheelValue("Yellow")

More information on the method and UI Testing in general.