Top "Xcode-ui-testing" questions

UI Testing in Xcode was introduced in Xcode 7, allowing a developer to write UI tests in Swift/Objective-C. The primary method of interacting with an app is via an instance of XCUIApplication.

How to detect if iOS app is running in UI Testing mode

I would like my app to run special code (e.g. resetting its state) when running in UI Testing mode. …

ios xcode-ui-testing
How to check for the presence of static text displayed from the network in UI tests in Xcode?

I am using the UI test APIs introduced in Xcode 7 XCTest. On my screen I have a text that is …

ios swift xctest xcode7 xcode-ui-testing
Xcode UI Testing [xcode7-beta6] - Asserting actual label values when using accessibility labels

The question is actually really simple: Is there a way to assert the displayed value from a specific label (e.…

ios testing xcode-ui-testing xcode7-beta6
UITesting, XCTest current ViewController Class

Simple problem. I got button which perform segue to next view controller. I want to write UI XCTest to tell …

ios swift xctest xcode-ui-testing ui-testing
How to access back bar button item in universal way under UITests in Xcode?

The problem is when I try to access back bar button item because it is presented with: Restaurants title, Back …

ios swift xcode-ui-testing
Xcode7 | Xcode UI Tests | How to handle location service alert?

I am writing UI Test Cases for one one of my app using the XCUIApplication, XCUIElement and XCUIElementQuery introduced in …

xcode xctest ios9 xcode7-beta4 xcode-ui-testing
How can you see the XCUIElement tree?

Background: I'm experimenting with ui level testing in iOS 9.0 with XCode GM. Question: Is there a command in XCode GM …

ios xcode testing appium xcode-ui-testing
Xcode UITest sometimes does not find property of XCUIElement

In my UI tests, the frame property of some XCUIElement are found, but not of others. The accessibility identifiers used …

xcode properties xcode-ui-testing xcuitest
Xcode 7 UI Tests, Recording button is greyed out

I am trying to add UI tests to my existing project using Xcode 7. However the UI test recording button is …

ios iphone xcode xcode7 xcode-ui-testing
Xcode 7 UITests with localized UI

In my App I'm using NSLocalizedString to localize my app. Now I want to switch to UITests and habe Testcode …

ios swift xcode7 xcode-ui-testing