xcode 7 ベータ版で UI テストを試しています。
XCUIElement が閉じられた後も、その.exists
プロパティは YES のままです。
例えば
XCUIElement *button = app.sheets[@"Sample sheet"].buttons[@"Sample button"];
[button tap]; // Tapping will dismiss UIActionSheet and its button will no longer exist.
XCTAssertFalse(button.exists); // -> Error here.
破棄された後に存在しない XCUIElement を検出する方法はありますか?