XCUITestsAdditions provides simple methods that may help you in everyday work with XCode UI Tests.
Before use import XCTestCase+WaitingForElement.h
in your XCTestCase file.
XCUIElement button = app.buttons["TestButton"];
[self waitForElement:button];
XCUIElement button = app.buttons["TestButton"];
[self waitForElement:button withTimeout:60];
XCUIElement button = app.buttons["TestButton"];
[self waitForElementHittable:button];
XCUIElement button = app.buttons["TestButton"];
[self waitForElementHittable:button withTimeout:60];
Pod is designed to use with UI Tests (available in XCode 7)
XCUITestsAdditions is available through CocoaPods. To install it, simply add the following line to your Podfile:
target "UITestTarget" do
pod "XCUITestsAdditions"
end
Pod should be added only to UITests target. Replace UITestTarget
with your target name.
XCUITestsAdditions is available under the MIT license. See the LICENSE file for more info.