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.

Delay/Wait in a test case of Xcode UI testing

I am trying to write a test case using the new UI Testing available in Xcode 7 beta 2. The App has …

ios ios9 xcode-ui-testing xcode7-beta2 xctwaiter
Is there a way to reset the app between tests in Swift XCTest UI?

Is there an API call within XCTest that I can put into the setUP() or tearDown() to reset the app …

swift xcode7 xctest xcode-ui-testing
UI Test deleting text in text field

In my test I have a text field with a pre-existing text. I want to delete the content and type …

swift uitextfield xcode7 uikeyboard xcode-ui-testing
UI Testing Failure - Neither element nor any descendant has keyboard focus on secureTextField

This is my case: let passwordSecureTextField = app.secureTextFields["password"] passwordSecureTextField.tap() passwordSecureTextField.typeText("wrong_password") //here is an error UI …

ios xcode swift ios9 xcode-ui-testing
Scroll until element is visible iOS UI Automation with xcode7

So with the new xcode update apple has revamped the way we do UI testing. In instruments we used java …

ios objective-c xcode-ui-testing
Xcode UI test - UI Testing Failure - Failed to scroll to visible (by AX action) when tap on Search field "Cancel' button

I am trying to dismiss the search field by tapping 'Cancel' button in search bar. The test case is failing …

xcode xcode7 xcode-ui-testing
Swift UI Testing Access string in the TextField

I am using the UI Test Case class integrated in Xcode and XCTest to test app UI. I want to …

ios swift xcode-ui-testing
Xcode 7 UI Testing: how to dismiss a series of system alerts in code

I am writing UI test cases using the new Xcode 7 UI Testing feature. At some point of my app, I …

ios objective-c xctest xcode7 xcode-ui-testing
Testing if an element is visible with Xcode 7 UITest

I want to verify if an element is visible or not depending on its .hidden property but I don't find …

xcode swift ui-testing xcode-ui-testing
Xcode UI Testing - typing text with typeText() method and autocorrection

I've got a test like below: let navnTextField = app.textFields["First Name"] let name = "Henrik" navnTextField.tap() navnTextField.typeText("Henrik") …

uitextfield ios9 xctest xcode-ui-testing