Questions tagged [xcuitest]

Apple's XCUITest framework for UI Testing on iOS and Mac OS.

638 questions
-1
votes
1 answer

How to verify that screen is not active in XCUITest swift?

UIApplication.shared.isIdleTimerDisabled should be true when screen is not active & false when screen is active. Always getting false value even when screen is not active(i.e. black screen) Any way to determine the state of the screen?
Indrajit
  • 331
  • 1
  • 5
  • 12
-1
votes
1 answer

Can a staticText be detected if its label which is variable contains "curly quotes"?

I need to assert the existence of a generated staticText on the screen. The staticText's label is the result of: An input text done by the user (variable!) Curly quotes that have been added at beginning and end by the app. So if user inputs "abc"…
-1
votes
1 answer

MapView not loading when running on CI

I have some XCUITests that need to tap annotations on a map, when I run the tests in my mac everything works fine, but when they run on CI the map doesn't load. https://i.stack.imgur.com/B6YEG.jpg
r.prats
  • 1
  • 1
-1
votes
1 answer

Unit Test: Evaluate Singleton into Function

I need your help, this time for Unit Test and how to evaluate a Singleton into Function. This is my context: I have a class, which it has a Singleton like this: class ClassToTest (){ var testMessage = "" init(){ // This is only a…
-1
votes
1 answer

How to check the Toggle is ON for XCUI TEST

To check the Dark Appearance Toggle is ON for XCUI TEST, can anyone please rectify me as in below code , the flow is not coming inside the if loop, i am using below code. Code is Below - if !settings.switches["Dark Appearance"].isEnabled { …
-1
votes
1 answer

XCUIAutomation: Click on corresponding button?

How to click on a button called Unlock from the label text LE SR Home notour. I'm new to this tool and got stuck here.
-1
votes
1 answer

The custom view added in the WKWebview is not listed during UITesting

I have a UITableview with the below view hierarchy. UIViewController |--UITableView |--WKWebview |--ScrollView |--UIView The UIView is added once the Webview load is completed and the view appeared properly in the UI. When…
Raghav
  • 625
  • 1
  • 12
  • 31
-1
votes
2 answers

Can XCUITEST can implement the cucumber Feature files

Can we write the Feature files and step definitions in Swift Automation framework using XCUITEST Framework ?Is yes , Any jar files or plugins we need to install ? I am unable to find much support in this
-1
votes
1 answer

How can I dismiss/hide OSX notifications in XCUITests?

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 answers for iOS (like dragging on…
Paulius Liekis
  • 1,676
  • 3
  • 18
  • 26
-1
votes
1 answer

Asynchronous UI testing in Swift

I have a button in a UI test that logs in to an app. The user flow to automate is this: User taps button Button text changes from "Log In" to "Processing..." Button disappears when log in is successful My UI test code is very simple for the…
Sean Long
  • 2,163
  • 9
  • 30
  • 49
-1
votes
1 answer

how to read data from pdf file using swift xcuitest

I want to do UI testing on PDF using swift xcuitest for that I need to access data from PDF. Please suggest is there any way to read data from PDF.
-1
votes
1 answer

Draw shapes on apple maps using XCUITest automation in Swift

Suppose if I have Four coordinates let app = XCUIApplication() let mapView = app.otherElements.matching(identifier: "map_view").element let co1 = mapView.coordinate(withNormalizedOffset: CGVector(dx: 0.1, dy:…
-1
votes
1 answer

Is there any synchronous way in XCUITest framework to test UITableview which has large data?

I have implemented XCUITest in my application but, I am facing a problem when I am trying to tap on the row from UITableView which has more than 1500 rows. Does anyone have any synchronous way to select table row?
Bhavesh Patel
  • 596
  • 4
  • 17
-1
votes
1 answer

Xcode 11 - XCUITest -> is there a way to handle this exception "Failed to get matching snapshots"?

Is it possible to catch the following exception? "Failed to get matching snapshots" Most of the stability issues with XCUITest is due to not having a proper method to wait for element to exist. Tried exists(), waitforexistence(),xctwaiter waits…
-1
votes
1 answer

Need some ideas to add intelligent wait in XCUI Tests

Adding intelligent wait before tapping on every button I have added a function which is being called every time it taps on element // if button.exists { // button.tap() // } else if !button.exists { // sleep(10) // …
Tom
  • 1
  • 2
1 2 3
42
43