680 questions
0
votes
1
answer
54
views
XCUITest not detecting AdMob banner
I am trying to build XCUITest for AdMob banner but some how it does not detect the banner, i suspect that maybe .safeAreaInset is causing the problem, because it does not detect it neither in ...
0
votes
0
answers
48
views
In-app purchase testing - Appium + XCuitest + Java
Appium 2.13.1
[email protected]
iOS 18.3
Automation doesn't recognize elements on that pop-up (Subscribe button), although I see them manually via Appium Inspector. When I get the elements dump via ...
0
votes
0
answers
30
views
XCUI performance tests using measure does not fail in the pipeline when it should...shows success instead of fail even when it fails
I'm using xcui measure to test the launch time of a native mobile app. When I set a baseline too low and run the test locally xCode fails the test as expected. However, when I run the same test in ...
0
votes
0
answers
128
views
How to tap on a markdown link within a SwiftUI Text view in a UITest
I am trying to write a UITest for SwiftUI link that I have set up in the following way:
var body: some View {
privacyPolicyLink
}
private func privacyPolicyLink(with url: URL) -> Text {
...
0
votes
1
answer
69
views
Appium XCUITest: what is ACCESSIBILITY_ID really? It's not in the page source, but it works locating an element
Swift code:
.automationIdentifier(.developer, .toggle, .custom("Notification Permission"))
Page source: Clearly something is concatenating the attributes in the swift code into the element'...
-1
votes
1
answer
83
views
Testing displayed label separately from accessibilityLabel in Swift XCUI tests
If we have the following view:
import SwiftUI
struct MyView: View {
var body: some View {
Text("Bar")
.accessibilityLabel("Foo")
....
-1
votes
3
answers
836
views
How can I mock network responses and state for UI tests using XCTest?
For my new SwiftUI app I'm looking to add tests. Using Swift Testing I've started to write some unit tests. I'm looking to add UI tests as well. The app relies heavily on network calls to fetch data ...
1
vote
1
answer
140
views
iOS UITesting - How can I access the search bar in a NavigationStack for UI Testing?
How can I access the search bar within NavigationStack for UI Testing?
Code:
var body: some View {
NavigationStack {
List {
// some elements
}
}
.searchable(...
0
votes
0
answers
44
views
Appium/XCUITest - Book with Apple pay button not clickable
I am writing some E2E tests with Appium 2, latest XCUITest and Python. I stumbled upon a problem. For some reason, even though I see the element and its Accessibility ID/XPATH (screenshot attached), ...
0
votes
0
answers
46
views
How to get the content of a notification in XCUITest?
How to get the content of a notification in XCUITest, specifically the notification's identifier
I have a piece of code in my app to show a notification as follows:
- (NSString *)...
0
votes
0
answers
65
views
Xcodebuild test-without-build not executing single test case
I want to try with xctestrun file to execute test cases with selected testcases only.
here is my cli command,
xcodebuild test-without-building -xctestrun multi_test_config.xctestrun -destination '...
0
votes
0
answers
56
views
Unable to execute a single test case using xcodebuild -only-testing option
We have a test suite which has nearly 1000 test cases. We need to run the test suite on a machine that is different than the build machine. We resigned the app and the test ipas, installed it on the ...
1
vote
0
answers
181
views
Unable to push files to iOS simulator using Appium - ApplicationLookupFailed error
I'm encountering issues while trying to push files to an iOS simulator using Appium for test automation. Despite having UIFileSharingEnabled set to true in Info.plist, I'm getting an ...
1
vote
0
answers
77
views
The XCUI performance tests ignore the baseline target
I'm using Xcode native performance test tool, Measure().
Described here:
https://developer.apple.com/documentation/xctest/xctestcase/3194266-measure
The issue is after you initially run the test you ...
1
vote
3
answers
731
views
Appium + Xcuitest doesn't recognize iOS native elements after upgrades
Upgraded iOS device from 15.6 to 18, Xcode to 16, Appium from 2.0.1 to 2.11.5 and xcuitest from 4.12.0 to 7.27.0. After those upgrades Appium Inspector shows only the specified app bundle but no ...