Questions tagged [xcuitest]

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

638 questions
3
votes
1 answer

How to install ipa file on simulator or real device?

I have ipa file and I can extract the app file if I dragged and drop the app file to simulator it's crashing in the landing page, Whenever I'm dragging the ipa file to device and simulator manager I'm unable to install it for both simulator and real…
Amr Salem
  • 237
  • 1
  • 6
  • 19
3
votes
1 answer

How can I get Xcode to find elements inside a webview for a hybrid app?

I’m an SDET on my current position, and I’ve been asked to research whether it’s possible to use Xcode and XCUITest to automate UI testing of a hybrid app. We have one we’re building internally that has a native wrapper around other apps being…
3
votes
1 answer

How to locate an app to share to in iOS13 share sheet via UI test?

I am using a UI test to check sharing a file to a target app. For that, I am using multi-app UI testing as follows: the target app should become active when sharing a given file to it a helper app UITestsHelperis a simple document-based app…
atineoSE
  • 3,597
  • 4
  • 27
  • 31
3
votes
1 answer

iOS UI testing - picker wheel adjusting only swipes by one item

I am trying to write a test for UIPickerView to pick certain values. I use picker.adjust(toPickerWheelValue: pickValue) to do so. But the problem is that for some reason this only swipes picker by one value. For example on the gif you can see that…
Simon Moshenko
  • 2,028
  • 1
  • 15
  • 36
3
votes
2 answers

Domain=NSCocoaErrorDomain Code=513 only when rename folder through UITests target for UI Autoamtion

I am developing a product like DropBox and Box application, and I need to verify Rename/Add/Delete I/O operation using automation. I am writing UI Automation Test Cases using XCUITest in Xcode. In that I need to use I/O operation for rename…
jigs
  • 839
  • 1
  • 6
  • 23
3
votes
0 answers

How to validate elements on PDF loaded in UIWebView in an iOS Native app using XCUITest UI Automation?

In our application, we have reports which are in .pdf format, and we have to validate the report data using XCUITest Automation, we are not able to identify the labels, static texts within the page. can anyone suggest a way to identify elements and…
3
votes
0 answers

iOS XCUITest - Simulate hardware keyboard tab key

Is there a way to simulate pressing the tab key on a hardware keyboard in XCUITest for iOS? There is XCUIElement.typeKey() but it's only available on macOS. I also tried typetext("\t") but that didn't have the same effect as pressing the tab key.
Uncommon
  • 3,323
  • 2
  • 18
  • 36
3
votes
0 answers

How to stop xcuitest from creating debug description attachments?

When I run XCUI tests, along with the screenshot image files, there are text files named like 'Debug description for WebView_1_9B32A2BB-A692-45D3-B86B-A3A68A59595E.txt'. Why are they getting created? How to stop them from being created?
3
votes
1 answer

XCUIElement isAccessibilityElement returning as false even though the element is reported as Is Accessibility Element in View Hierarchy

There's an XCUIElement my automated test is validating accessibility on but isAccessibilityElement is returning false. I checked the storyboard file and Accessibility has the checkbox marked. I checked the View Hierarchy as I was debugging the app…
Jason
  • 808
  • 6
  • 25
3
votes
1 answer

How to get app information like app version, device os version in ios using Appium?

I am testing the app using appium and integrating the test output in testrail. I need to add the device and app information in the testrail. In android i am able to get app and device information like device model, device version and app version…
Suban Dhyako
  • 2,436
  • 4
  • 16
  • 38
3
votes
0 answers

Open a url on Mobile Safari on iPad 2019 iOS v12.2

So I'm using XCUIApplication to open a url on Safari browser via WebDriverAgent by using the -u option. #define SAFARI_APP @"com.apple.mobilesafari" XCUIApplication *app = [[XCUIApplication alloc] initWithBundleIdentifier:SAFARI_APP]; [app…
Pattu
  • 3,481
  • 8
  • 32
  • 41
3
votes
1 answer

XCUITest for Multiple Text fields Keyboard is not hiding or the keyboard is not being focused on second text field

Im working on with XCUITest, where in its a simple screen, having just username textField, password textField and a Login Button. I could able assert like on tap of Login button, both username textField and Password textField is non empty. But what…
Mahesh S
  • 309
  • 1
  • 11
3
votes
0 answers

How to fix "Failed to terminate app" error in XCUItests?

I'm running bunch of XCUItests as Fastlane job. Every time some of the tests get failed with an error "Failed to terminate com.****.****:57929". Works fine when I run these tests directly using Xcode on simulator. Issue occurs only when I run these…
3
votes
2 answers

XCUITest coordinate(withNormalizedOffset:) explanation

I need the detailed information about coordinate(withNormalizedOffset:) method. The information provided in the Apple's docs are very minimal. This method is all about picking a specific point in the window. But how can I define dx & dy points for…
Confused
  • 3,846
  • 7
  • 45
  • 72
3
votes
1 answer

How to pause XCUITest for manual Simulator manipulation?

I'm trying to automate parts of my UI testing using XCUITest. I wan't the test do automatically do parts of the test, and then wait for me to do some stuff manually. Is there a good way to do this? Right now I'm just doing this: class QDBUITestHost:…
eivindml
  • 2,197
  • 7
  • 36
  • 68