Questions tagged [uitest]
249 questions
3
votes
2 answers
Xcode 8.1 dyld: Library not loaded: @rpath/XCTest.framework/XCTest error
So,this is the error,I record my UI script done,but the error occurred when I replayed the UI script.the console show :
"dyld: Library not loaded: @rpath/XCTest.framework/XCTest
Referenced from:…

PX Cheng
- 101
- 1
- 6
3
votes
1 answer
How do I stop Xamarin.UITest removing data between Tests?
I have written some UITests for my Xamarin application using Xamarin.UITest I am trying to split my tests into individual Tests but sometimes the tests I run remove the previous data and my application goes back to the start-up proccess.
I have…

JKennedy
- 18,150
- 17
- 114
- 198
2
votes
1 answer
Copy Data from an Android Emulator that is run by Gradle Managed Devices
When running UITests on an Android Emulator that is managed using Gradle managed devices, how do I copy data like screenshots, cucumber reports etc.? I cannot use adb pull because the emulator is shutdown and reset instantly after each run.

Lutzifer
- 755
- 1
- 6
- 11
2
votes
0 answers
How to pass through biometric in espresso ui test?
I have a test scenario that I have to pass through from biometric fingerprint to continue the scenario.
How can I do this and passthrough from biometric?

MeNoVa
- 69
- 2
- 7
2
votes
2 answers
XCTest UI Test System PhotoAuth Alert error。[__NSArrayM insertObject:atIndex:]: object cannot be nil (NSInvalidArgumentException)
// tap photo auth entrance
XCUIElement *collectionView = app.collectionViews.firstMatch;
XCUIElement *authCell = [collectionView.cells elementBoundByIndex:2];
[authCell tap];
// springboard click allow
XCUIApplication *springboard =…

林紫一
- 21
- 2
2
votes
0 answers
Swift - UI Test: Could not "Allow" permission popup on UI Test (xCode 13.3)
I will try to this code but could not Allow permission.
let popup = XCUIApplication(bundleIdentifier: "com.apple.springboard")
if isExists(popup) {
let button = popup.alerts.firstMatch.buttons["Allow"]
button.tap() //<-- *** -[__NSArrayM…

blindknight
- 79
- 1
- 6
2
votes
0 answers
AndroidTest org.koin.core.error.NoBeanDefFoundException: No definition found for class
I am trying to mock viewmodel in mu android test but i am getting this error
org.koin.core.error.NoBeanDefFoundException: No definition found for
class:'com.example.berlinclockdemo.ui.MainActivityViewModel'. Check
your definitions!
How can I solve…

Dineshdev
- 21
- 1
2
votes
1 answer
Appium can't run Xamarin Forms app that has SplashActivity
Issue seem to happen with Xamarin Form app that has Splash Activity. Run fine on Xamarin Form app without Splash Activity
Error:
my.company.package.crc647d31b46756051f61.SplashActivity' never started
ADB] Incorrect package and activity. Retrying.

Visual Sharp
- 3,093
- 1
- 18
- 29
2
votes
1 answer
How to disable some test case in Test suit XCUI?
Currently I have issue that I can't disable some test case ( XCUI Test ).
I already try to disable case from schema, It worked when I test from xcode but when I run it from script it doesn't work.
My Script
/usr/bin/xcodebuild test-without-building…

Nawin P.
- 223
- 1
- 4
- 11
2
votes
2 answers
How to get the tag of a view in an Espresso test?
I am working in some end to end test using Espresso.
In the test I need to know the user id (because I need to call one endpoint that mocks some external party).
To get the user id, I was thinking about setting it as a tag in a view and get the tag…

Frank van der Linden
- 345
- 1
- 3
- 6
2
votes
1 answer
Inconclusive: Test not run in Xamarin UI Test
I have integrated Xamarin UI test within my Xamarin forms App. I am using Xamarin Ui test framework 3.0.0. In the beginning Test was running sucessfully. Now, i am getting error which says inconclusive: Test not run Error. Can anyone help me with…

Narendra
- 1,332
- 2
- 13
- 16
2
votes
0 answers
Xcode UI Test Crashes for exists, isHittable, waitForExistence and recording
I have a very simple Xcode UI Test with this function:
func waitForElementToAppear(_ element: XCUIElement) -> Bool {
let predicate = NSPredicate(format: "exists == true")
let exp = expectation(for: predicate, evaluatedWith: element,…

Janosch Hübner
- 1,584
- 25
- 44
2
votes
1 answer
XCTest: Tap "Done" button in SFSafariViewController
I'm opening a SFSafariViewController and can't find the "Done" Button to leave Safari again.
Also if I try to solve it with a swipeRight XCode creates code that it can't use in a test afterwards
let element = app.children(matching:…

netshark1000
- 7,245
- 9
- 59
- 116
2
votes
0 answers
Xcode UI Test cannot access multiple collection views inside a table view
I have a problem with accessing collection view cells inside a table view cell when using app.debugDescription during XCode UI Test runs.
First of all, XCUIApplication proxy do not see any collection views, but there are 4 of them, 2nd it does not…

Miki
- 903
- 7
- 26
2
votes
4 answers
Make Xamarin.Uitest Tap Hamburger Icon in drawerlayout toolbar
I have a xamarin.uitestApp running in Visual Studio, I want to write tests for an App that uses the drawerlayout for navigation.
How do I make Xamarin.Uitest tap the Hamburger Icon in drawerlayout toolbar?
I have tried:
app.WaitForElement(c =>…

Ola
- 21
- 4