Reply to Xcode UI test fails to edit multiple UITextFields It's helpful to make sure that element is exist. You can use waitForElementExistence. This will solve your problem. Developer Tools & Services Xcode Feb ’22