xcuitest Questions

1

Solved

I want to test a button's click behavior. When executing button.tap(), the test fails. XCTContext.runActivity(named: "Validate reply click") { (activity) in let button = App.buttons.matc...
Androgyne asked 3/7, 2020 at 11:45

2

I am writing UITest cases for my iOS Swift app. In the app I have created a custom right item button on the navigation bar in this way: let barButtonItem = UIBarButtonItem(customView: customView) ...
Libbie asked 9/1, 2019 at 19:28

2

I'm writing XCUITests for view has 2 UITextField and by defualt the simulator has hardware keyboard connected, hence the software one is not being presented. Is it possible to set some settings (m...
Photocomposition asked 25/4, 2019 at 8:53

1

Solved

I would like to be able to tap a concrete button on my stack of views. To achieve this, first I set on my code an accessibility id: Button(action: { withAnimation(.easeOut(duration: 1)) { self.m...
Norite asked 11/3, 2020 at 13:41

2

Solved

Is anyone else having problems running Xcode UI tests with Xcode 11 targeting an iOS 13 simulator or device where looking for the buttons on an UIActivityViewController causes a crash? I have mult...
Wirer asked 1/10, 2019 at 0:28

2

Solved

Is there a way to automate face ID or Touch ID using xcuitest framework in simulator. Manually I can perform enrolling face/touch id and perform matching or non-matching scenarios. However I would ...
Devonadevondra asked 30/11, 2018 at 10:25

3

Solved

I have used app.staticTexts["String"].tap() to tap on a button containing that string which is working completely fine. But the problem here is that i want to print all the static texts which are p...
Wong asked 2/7, 2019 at 7:27

2

Running any XCTest with Xcode 11 and iOS 13/12 simulators throws the below warning message: xcodebuild[95489:2342933] [MT] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/DVTiOS...
Felicle asked 23/9, 2019 at 20:20

1

I have a sample text file in my UITests target. I want to copy this file to the documents directory of the app so that when I perform tests on uploading of file in my app, I can select it via Files...
Taunt asked 29/10, 2019 at 3:11

3

I am using XCUITest to test UI behaviour when the keyboard is present - for example, if content properly moves up when the keyboard appears. For some reason, the iOS simulator insists on regularly...
Moise asked 27/3, 2019 at 15:58

3

Solved

I have a collectionView that has a bunch of cells that contain a single UIImageView in each cell. I want to test wether or not in each cell, the imageView's image matches the correct image name. I...
Dismember asked 12/6, 2019 at 18:19

1

Solved

I am trying to test native iOS app using Appium v1.13.0. When I execute the tests using iOS Simulator lunched by Xcode 10.2, I get the following error from the Appium server. ******************...
Keary asked 12/6, 2019 at 11:5

3

Solved

In my UI tests, the frame property of some XCUIElement are found, but not of others. The accessibility identifiers used below are set in storyboard, and app is initialised in setUp() as XCUIApplica...
Cloister asked 3/1, 2018 at 10:45

1

When I try to run my test cases in simulator, I'm getting this error: "Failure requesting automation session for com.name.name:61876: Timeout waiting for fulfillment of promise for 'Requesting...
Fishback asked 19/2, 2019 at 12:33

2

I want to support VoiceOver. I have an UIButton inside of an UITableViewCell. According to a best practice I have disabled the button for accessibility (.isAccessibilityElement = false) and impleme...
Glycogen asked 19/11, 2018 at 11:36

0

My XCUITest will fail on one screen because of cannot Find the Target Application: Could anyone please give some suggestion here? I don't understand how comes when first land on this screen the sc...
Indeliberate asked 3/4, 2019 at 18:0

1

I've created a GPX file and added it to my project. If I have my project running, I can select the GPX file from the dropdown of possible locations to simulate and have it correctly apply the defin...
Greaser asked 7/11, 2016 at 18:24

1

Solved

I'm writing a UI Test for a white label project where each app has a different set of menu items. The test taps on each menu item and takes a screenshot (using fastlane snapshot). Currently this a...
Mccaskill asked 13/3, 2019 at 12:43

1

Solved

This test in failing because exceeds maximum length of 128 characters. You can work around this limitation by constructing a query with a custom NSPredicate that specifies the property (label...
Variole asked 27/11, 2018 at 14:6

2

Solved

I updated to xcode 10 from Xcode 9.4 and then when trying to run my UI tests nothing seems to be working. The test app loads for a while then test failed although the build is successfully done bef...
Marcelo asked 6/11, 2018 at 9:27

1

Has anybody successfully used addUIInterruptionMonitor to clear the alert produced by start()ing an SFAuthenticationSession while running an XCUITest? I can't get it to work on Xcode 9.1/iOS 11.1....
Cistercian asked 17/11, 2017 at 13:25

1

I am trying to integrate UI tests in an quite big react native project. But as soon as i want to record the ui test i get the warning Timestamped Event Matching Error: Failed to find matching elem...
Frankish asked 28/5, 2018 at 10:58

2

Solved

lets say I have a table with three images whose accessiblityIdentifier set to "fooImage". XCTAssertTrue(table["tableName"].images.count == 3) will work, but this is sucky -- what if someone adds a...
Carleecarleen asked 28/2, 2018 at 18:14

1

Solved

I am testing an app that uses Push notifications. Within the main app target, the 'Push Notifications' (inside the Capabilities tab) is set to on. I created a UITest target for UI Automation Testi...

4

I have a UI test like so : func testHome(){ if(isRedOrange.clear()){ //code } } How would I access my isRedOrange.clear function from my isRedOrange.swift file from my UI tests?
Updraft asked 11/8, 2018 at 12:59

© 2022 - 2025 — McMap. All rights reserved.