Questions tagged [xcuitest]

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

638 questions
-1
votes
1 answer

Second Test Method is having nullpointerexception error

I am doing automation testing of an Ios app using appium server. I have implemented two classes. First one is having UI elements finding attributes, actions and a constructor. And the other one is having test methods and driver configurations. This…
Sammar Ahmad
  • 236
  • 5
  • 16
-1
votes
1 answer

XCUITest: Failed ( Thread 1: EXC_BAD_ACCESS (code=1, address=0x0) ) when trying click on text field

I'm getting this error on the XCUITest when trying click on text field: (i'm using Xcode Version 9.4.1 ) Thread 1: EXC_BAD_ACCESS (code=1, address=0x0) This the unit Test: let app = XCUIApplication() let textField =…
-1
votes
1 answer

Try-catch like feature for uncertain code block in Swift 4

I am writing a test in XCUITest. There is an introductory banner which may or may not come on the mobile screen while my test is in progress. I want to write my case in such a way that, if the banner is present, I have to verify certain elements on…
Amit Jathar
  • 319
  • 3
  • 14
-2
votes
1 answer

How to find the elements for below command in swift for XCUITEST

app.otherElements["the-lab-page"].children(matching: .image)["TheLab_Moon"] How to find the loctor or identifier in XCUITEST Framework, it is single element I used all types of combinations such as app.scrollViews.matching(identifier:…
-2
votes
1 answer

How to check launch image is added in application using XCUITest?

i have implemented XCTest case for each module and i'm looking for how to know that launch Image is added in xcasset using xctest case.
Sweta Vani
  • 61
  • 9
-2
votes
1 answer

Get state checkbox with xcuitest

i want get state checkbox index 1 2 3 4 I have tried the below code but it doesn't seem to work app.checkBoxes.element(boundBy: 1) Can someone please tell what i am doing wrong.
-3
votes
1 answer

Issue while parsing JSON file in my XCUITest

JSON file : "credentials" [ { "name" : Tom Harry "email" : tomharry@abc.com "password" : tomharry123 }, { "name" : Sam Billings "email" : sambillings@abc.com "password" :…
Sumit
  • 1
  • 3
1 2 3
42
43