Questions tagged [uitest]
249 questions
6
votes
1 answer
How to access elements nested in UIStackView within MkMapView for UITests?
I want to write UI tests for views inside a UIStackView thats inside a MKMapView.
Here's a snippet of the MWE. I created a MKMapView added a UIStackView with two UIViews as subviews.
let map = MKMapView()
let view1 = UIView()
let view2 =…

qiip
- 61
- 2
6
votes
8 answers
Xcode UITest Record button is disabled
Has anyone seen this happen before? I can not run UITests because the button is disabled. I have not found any help online. I have deleted and added a new test target, restarted Xcode and deleted derived data. None of these worked and I have no idea…

Abbey Jackson
- 885
- 10
- 20
5
votes
1 answer
How to link custom framework within UITest target in Xcode - another "Library not loaded - @rpath"-issue
My project uses Xcode 11.3.1 and is structured as followed:
MyProject
- MyProject.xcworkscapce
- MyFramework
- MyApp
-MyApp (main-target)
-MyAppUITests (uiTest-target)
MyApp imports MyFramework and can be built und run just fine. For this…

nayooti
- 395
- 2
- 15
5
votes
1 answer
No matches found for Find: Elements matching predicate '"" IN identifiers' from input
Im getting this error on the Unit Test:
No matches found for Find: Elements matching predicate '"addressSearchBar" IN identifiers' from input {(
SearchField, 0x60000038a420, traits: 146029151232, label: 'Search on Google Maps', placeholderValue:…

Tassio Marques
- 81
- 1
- 10
5
votes
2 answers
How to dismiss a popover in a UI Test
I have a view controller that is presented using a "Present As Popover" segue. When I run the app it works as expected and tapping outside of the popover will dismiss it. However, when I run my UI test, I can't get the popover to dismiss. How should…

beyerss
- 1,302
- 3
- 21
- 38
5
votes
2 answers
How to select a localized date picker item in an iOS UItest
I have a picker view with a date picker created in Interface Builder. In the Attributes Inspector is selected: Mode "Date and Time". In my UI test I need to select a specific Date and Time from it. I am using the XCTest UI testing APIs that were…

Herwart
- 51
- 3
5
votes
1 answer
Xcode UI Test - How to Find and tap() an Element Inside a WebView
I am trying to find a way to tap a link with the following HTML structure:
The a tag does not have any attributes or text associated with it, just the div tag inside.
I have tried the following but with…

Audible
- 235
- 3
- 10
4
votes
1 answer
Unable to find a destination matching the provided destination specifier
Currently, I am struggling with the following issue and it's kind of big blocker for our project.
We need to run ui tests for apple watch test target in the iOS App with Watch App using terminal and we receive such error, which is quite…

zhanch
- 145
- 1
- 8
4
votes
1 answer
Storekit configuration file for UITest
I created Configuration.storekit file, and it work for Run on ios simulator.
But when i'm trying to run UITest, it always fails on initing SKTestSession(configurationFileNamed: "Configuration") with error:
caught error: "Error…

Dmitrii Kononets
- 74
- 5
4
votes
1 answer
Espresso tests failed on real device with api 28
I downloaded test samples form https://github.com/android/testing-samples And BasicSample doesn't work on the real device with Android 9 works on Android 10. I have an exception. What is wrong? The activity doesn't even launch on the…

Artem Serbin
- 41
- 1
4
votes
1 answer
XCUITest - Open iOS settings and change date/time
Is it possible to change a device's date/time settings within a UI test?
I'm able to open the Settings app, naviguate to General > Date & Time and turn off the "Set Automatically" button. However, I can't find a way to change the pickerWheel value.…

iOSTesterDD
- 43
- 4
4
votes
0 answers
Is there a good way to test deep link in iOS?
Since UITest runner is run in a separate runtime with app, I'm using Safari to test deep link.
And I also tried iMessage.
But the more test cases added, the more test time took.
So I want the other way to test deep link, and it moves to right…

JellyMe
- 41
- 2
4
votes
1 answer
Xcode test recording disabled, says "At least one test should be selected"
Xcode 10.2.1, iOS 12.2, iPhone 8 Simulator.
I am able to successfully test my app by manually writing my own tests, but I'm unable to record. The record button is disabled, and if I hover over it, Xcode says "At least one test should be…

Rick
- 3,298
- 3
- 29
- 47
4
votes
4 answers
How to get text of specific element - Xamarin UI Test
I have:
[TextView] id: "MonthValue" text: "11"
I want to get text as String of id MonthValue

Żyli
- 41
- 1
- 3
4
votes
2 answers
iOS UITest : How to find UITableViewCell's AccessoryView?
Hello I'm learning UITests now
I have a question
how can detect accessoryView's tap on the tableViewCell?? in UITest
below is my tableViewCell
I want detect detail closure accesorry view's tap
like this…

Cruz
- 2,602
- 19
- 29