skip to Main Content

Xcode – XCTest UI Test System PhotoAuth Alert error。[__NSArrayM insertObject:atIndex:]: object cannot be nil (NSInvalidArgumentException)

// tap photo auth entrance XCUIElement *collectionView = app.collectionViews.firstMatch; XCUIElement *authCell = [collectionView.cells elementBoundByIndex:2]; [authCell tap]; // springboard click allow XCUIApplication *springboard = [[XCUIApplication alloc] initWithBundleIdentifier:@"com.apple.springboard"]; XCUIElement *button = [[springboard.alerts.firstMatch buttons] elementBoundByIndex:1]; BOOL exist = [button waitForExistenceWithTimeout:5]; XCTAssertEqual(exist, YES, @"photo…

VIEW QUESTION
Back To Top
Search