Post not yet marked as solved
Post marked as unsolved with 6 replies, 3,958 views
Hello,Since Xcode 11, getting value from a UISwitch in Settings app with XCUITest is not working anymore with iOS 12 devices.For example, going on the Notification settings, I would like to check some switch values. let switchSounds = settingsApp.switches["Sounds"]
let expectedValue = isEnabled ? "1" : "0"
XCTAssert(switchSounds.value as? String == expectedValue)The switchSounds is found but its value is nil. It was working before and it still works on the app I run my other tests on.Is there any workaround I can use ? I tried using isSelected but it's not working either.