xcuitest Questions
2
I have a project where I write XCUITests. I would like to place the accessibility IDs in a separate framework along with other things so that they can be read in the project and in the tests.
MyPro...
3
I am writing an UI test case, in which I need to perform an action, and then on the current page, scroll the only UITableView to the bottom to check if specific text shows up inside the last cell i...
Hokum asked 22/1, 2019 at 20:30
2
After updating to Xcode 11.3, my all test cases stopped working because of the unnecessary text .xctrunner appended with bundle id.
Example- If I am giving bundle id as abc.com then it's showing ab...
Interdisciplinary asked 27/7, 2020 at 11:41
4
We are running Xcode 12.4 and keep randomly seeing the following errors when running our XCUITest tests:
The test runner exited with code -1 before finishing running tests
We can rerun the failed...
10
Our UI test suites are showing some unexpected behaviour where our Create Password screen intermittently auto-completes both the username and password - this results in the test being failed.
The ...
4
Solved
I was wondering if there is a way to set dark mode in-code for the XCUIApplication within a swift UITests project.
I have a need to launch the app in light mode and dark mode in the same test. Set...
Windtight asked 22/12, 2019 at 20:58
4
Solved
I would like to create several tests for native iOS application. To be more precise, I want to test deep links. But I am not sure how to trigger deep link with XCUITest and I don't really see how l...
Thundering asked 4/9, 2018 at 7:16
2
Solved
I need the detailed information about coordinate(withNormalizedOffset:) method.
The information provided in the Apple's docs are very minimal.
This method is all about picking a specific point i...
Dunn asked 12/2, 2019 at 13:41
7
After building my app in Xcode 11 and running my suite of XCUITests I am getting many random failures with the following.
Failed to get matching snapshots: Error getting main window kAXErrorServe...
2
I'm currently using
addUIInterruptionMonitor(withDescription: "System alerts") { alert in
let notNowButton = alert.buttons["Not Now"]
if notNowButton.exists {
notNowButton.ta...
2
I am getting an error
No matches found for Find: Descendants matching type NavigationBar from input {(
Application, 0x60400019b790, pid: 20515, label: '<appname>'
)}
but the code was gene...
2
Solved
I have been locating XCUIElements using this method:
app.staticTexts["Full Label Text"]
But what if I only know part of the label text? Part of the label text is generated dynamically (e.g. "Ite...
Perrine asked 1/3, 2018 at 9:28
3
I have a VStack with code relying on the .onTapGesture method. Something like this:
VStack {
if imageShow {
Image("image1")
}
else {
Image("image2")
}
}
.onTapGesture {
imageShow.toggle()
}...
0
I have one scenario where I need to change value of Date in swift while doing XCUITest.
I mean if current date returns 2022/07/06 22:31, I just want it should use some different time while running ...
2
Solved
I launch the Accessibility Inspector from within Xcode but it doesn't let me interact with elements in the simulator.
I relaunched Xcode, the Accessibility Inspector and simulator but it doesn't se...
Adown asked 24/3, 2022 at 22:57
7
Solved
Recently I started testing an iOS app using XCTest but I found some difficulties, the main difficulty was deleting or resetting the app content in each test class.
I'm currently using XCode 11 and...
3
Since upgrading my device (iPhone 11) to iOS 14.0.1, I have found addUIInterruptionMonitor() to not be triggered at all. It was working before on iOS 13.4.1, which was the last version I had instal...
3
I have an empty text field on my UI, though it has a placeholder text (whose value is foo) set in the storyboard. In my UI test, I am trying to check that its text value starts out empty, but when ...
1
I don't know can I use this functionality in my UI tests on iOS, but I try it, an have problem with this.
In my UI tests I can choose Allow tracking for my app or I can decline tracking, but after ...
1
I have these notifications (on CI machine):
That "pollute" my screenshots of the app that I'm testing using XCUITests. How can I dismiss or hide them during the test?
I've seen some answ...
0
Whenever I'm trying to run any of my iOS automation tests, only the runner app gets installed and none of the tests actually get executed because the executable is not installed. This issue o...
Swagerty asked 20/9, 2021 at 12:49
4
I'm using Xcode 8 to automate my application.
I get started by downloading an existing code: XCUIToDo project. I opened the project in Xcode, and when I click on the Record button, I'm seeing a war...
4
Solved
Looking at XCTWaiter().wait(...) I believe we can wait for multiple expectations to become true using this code
let notHittablePredicate = NSPredicate(format: "hittable == false")
let myExpectatio...
Bliss asked 19/12, 2017 at 5:15
2
Solved
How do you access a UIActivityViewController (share / actions sheet) in XCUITest? According to the Accessibility Inspector, t is comprised of several UICollectionViews, which makes it hard to disam...
Overseas asked 25/1, 2018 at 19:33
5
Coming from an Android/Espresso background, I am still struggling with XCUITest and UI testing for iOS.
My question is about two related but distinct issues:
How to compile and link against sourc...
Semi asked 24/1, 2020 at 14:48
1 Next >
© 2022 - 2025 — McMap. All rights reserved.