I try UI Testing on xcode 7 beta.
After an XCUIElement dismissed, its .exists
property still remains YES.
e.g.
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.
Is there any way to detect an XCUIElement not exists after being dismissed?