calabash / DeviceAgent.iOS

DeviceAgent.iOS is an XCUITest -Runner.app that is used by Xamarin.UITest and Calabash iOS to perform UI tests on iOS applications.
MIT License
16 stars 16 forks source link

Improved exception handler when handling alerts on iOS 12.5 #423

Closed IlyaBausovAkvelon closed 2 years ago

IlyaBausovAkvelon commented 2 years ago

There was an issue in the latest DeviceAgent versions with handling alerts on devices with iOS 12.5. There was exception when trying to tap on alert button:

*** -[__NSArrayM insertObject:atIndex:]: object cannot be nil

No more stack trace was available after that. The issue seems like was introduced in Xcode 13.2 in XCTContext class and on Xcode 13.3.1 it is still reproducing.

For now we added correct handling of this exception and we will try to fix it with Xcode 13.4 update.