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.

Xcode 7, UI-Testing: working with UITableView

I'm facing with one problem using UITesting framework for the xCode that Apple has introduced at WWDC 2015. I have a …

ios xcode7 ui-testing xcode-ui-testing
How to get index of XCUIElement in XCUIElementQuery?

This is my simple UITest (customizing order of tabs in tabbarcontroller): func testIsOrderOfTabsSaved() { let app = XCUIApplication() let tabBarsQuery = app.tabBars …

ios xcode swift xcode-ui-testing ui-testing
UI Testing Xcode 7- can't access element within subview

I'm trying to access an element within a subview and I'm finding it impossible to do so. The hierarchy being: …

ios xcode swift2 xcode7 xcode-ui-testing
UITesting Xcode 7: How to tell if XCUIElement is visible?

I am automating an app using UI Testing in Xcode 7. I have a scrollview with XCUIElements (including buttons, etc) all …

swift automation xcode7 ui-testing xcode-ui-testing
Swift2 UI Test - Wait for Element to Appear

I want to have a test pause and wait for an element to appear on screen before proceeding. I don't …

swift swift2 xcode-ui-testing
Is it possible to "toggle software keyboard" via the code in UI test?

I have UI tests which testing login functionality (and uses it to test other stuff), but sometimes when focus is …

ios xcode ios-simulator xcode-ui-testing
How to obtain reference to TextField in UI Tests in Xcode 7

I am trying to use UI tests in Xcode 7 beta. I have a storyboard with two text fields. Both text …

xcode swift xcode7 xcode-ui-testing uitest
Where is the screenshot file from Xcode UI Test?

I'm interested how to find the location of a screenshot which is created during UI Tests of my app. I …

ios xcode-ui-testing fastlane
Possible to bring the app from background to foreground?

When running an XCT UI test it is possible to put the application under test in the background with: XCUIDevice().…

ios swift xcode7 xcode-ui-testing
Handler of addUIInterruptionMonitor is not called for Alert related to Photos

private func acceptPermissionAlert() { _ = addUIInterruptionMonitor(withDescription: "") { alert -> Bool in if alert.buttons["Don’t Allow"].exists { //doesnt get here …

ios swift xcode-ui-testing