XUITest does not recognize springboard App for IOS 15.2 simulators

Hi,

In my UI tests, I handle some system alerts and app deletion for some tests by instantiating the springboard app. I have Xcode 13.2.1 with both iOS 14.1 and iOS 15.2 simulators. The code works perfectly for iOS 14.1 simulators but is not working for iOS 15.2 simulators. What should I do for the code to work on iOS simulators.

I am not using alert monitors , because alert monitors doesn't seem to work at all nowadays.

The code I use to tap on the keychain alert,

let springboard = XCUIApplication(bundleIdentifier: "com.apple.springboard")
springboard.alerts.buttons["Save Password"].tap()

I have the same problem with iOS 17.4 using springboard.secureTextFields["Passcode field"]. It works in iOS 17.0.1 but not in iOS 17.4.

XUITest does not recognize springboard App for IOS 15.2 simulators
 
 
Q