Skip to content

dstranz/XCUITestsAdditions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XCUITestsAdditions

Version License Platform

XCUITestsAdditions provides simple methods that may help you in everyday work with XCode UI Tests.

Usage

Before use import XCTestCase+WaitingForElement.h in your XCTestCase file.

Waiting for UI element with 15 seconds timeout

XCUIElement button = app.buttons["TestButton"];
[self waitForElement:button];

Waiting for UI element with custom timeout

XCUIElement button = app.buttons["TestButton"];
[self waitForElement:button withTimeout:60];

Waiting for hittable UI element with 15 seconds timeout

XCUIElement button = app.buttons["TestButton"];
[self waitForElementHittable:button];

Waiting for hittable UI element with custom timeout

XCUIElement button = app.buttons["TestButton"];
[self waitForElementHittable:button withTimeout:60];

Requirements

Pod is designed to use with UI Tests (available in XCode 7)

Installation

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.

License

XCUITestsAdditions is available under the MIT license. See the LICENSE file for more info.