Is it possible to change a device's date/time settings within a UI test?
I'm able to open the Settings app, naviguate to General > Date & Time and turn off the "Set Automatically" button. However, I can't find a way to change the pickerWheel value.
let settingsApp = XCUIApplication(bundleIdentifier: "com.apple.Preferences")
settingsApp.launch()
settingsApp.tables.cells["General"].tap()
settingsApp.tables.cells["Date & Time"].tap()
settingsApp.switches["Set Automatically"].tap()
// Change pickerWheel value?
Any thoughts? Is it at all possible?
Thanks!