Questions tagged [ios-ui-automation]

Automated UI Testing using the Automation instrument included with Instruments for iOS development. Not to be confused with [xcode-ui-testing] which was introduced in Xcode 7.

Instruments is an application shipped with Xcode and used to help profile applications in both iOS and OS X development. One of the tools included with Instruments is the UIAutomation instrument which allows for automated testing of user interfaces using scripts written in JavaScript. This functionality was introduced with the iOS 4 SDK.

This tag specifically focuses on using this functionality in relation to iOS development. These scripts can be used not only to automate a user's interaction with the application, but they can also contain asserts which can test if the application is behaving according to the developer's expectations.

For the new Xcode 7 UI Testing feature, see .

756 questions
2
votes
1 answer

Is there a way to automate hold and drag of an object with iOS automation?

I am currently working on automating tests on iPad using a home built iOS automation framework running on sdk 5.0 and xcode 4.2. One of my test requires that I hold and drag an object. I am able to touchAndHold and drag separately but can't seem to…
2
votes
1 answer

clearing keychain for UIAutomation tests

I am writing UIAutomation tests to test the UI of our iPhone App. Since some data is stored in Keychain on the first run of the application, I would like to reset the keychain when starting my UIAutomation test. Is there any way this can be done…
spf
  • 31
  • 2
2
votes
2 answers

How to run UIAutomation script from command line to Simulator

I have automated my iOS application using UIAutomation, To run this I launch iOS Instruments and run the script. If Same automation script I want to run to the device I use the below command which works as desired instruments -w -t …
2
votes
2 answers

Appium Inspector seeing everything as one big element for iOS

I am trying to get pointed in the right direction on a issue I am facing. Appium Inspector is grouping all elements into 1 monolithic thing on iOS, rendering it useless as it cannot select specific elements. I am not seeing this issue on Android.…
adbarads
  • 1,253
  • 2
  • 20
  • 43
2
votes
1 answer

iOS UIAutomation UIAElement.isVisible() throwing stale response?

I'm trying to use isVisible() within a loop to create a waitForElement type of a function for my iOS UIAutomation. When I try to use the following code, it fails while waiting for an element when a new screen pops up. The element is clearly there…
wierddemon
  • 223
  • 1
  • 2
  • 10
2
votes
1 answer

"Automation Running Hold both volume buttons to stop", how to loose this grey transparent overlay message on iPhone screen while testing using Appium

I am testing an application on iPhone real device using appium. I always see a grey transparent overlay message on the screen which sometimes interferes with the automation script execution. Any help would be deeply appreciated. Details: iOS version…
Raghu K
  • 57
  • 1
  • 10
2
votes
1 answer

Flutter does it possible to make IOS search bar ui ? and how?

I am want to make an IOS ui of a search bar but all I have found is regular ui's if someone know how can I do that it will be great example:
roee attias
  • 153
  • 4
  • 15
2
votes
1 answer

How can I test re-ordering a table using Instruments and UI Automation?

I am using UI Automation to develop test cases for my app. One of the actions I need to test is to put a table into 'edit' mode and then re-order cells in the table. I am able to navigate to the view and tap on the 'edit' button I put into the…
Charlie W
  • 21
  • 2
2
votes
2 answers

Xcode: UI Automation: waitForValid()

There's a waitForInvalid() but what about a waitForValid() function? For some reason, push/popTimeout doesn't work for me in many cases. Apple?
ma11hew28
  • 121,420
  • 116
  • 450
  • 651
2
votes
2 answers

What are the ways or tools available to inspect element in a Mac desktop application

We have firebug or chropath or inspect element methods to find locators of a web application. Similarly, how to identify element of a Mac desktop application (for example, iTunes desktop app)? Thanks in advance.
Harish Kannan
  • 465
  • 2
  • 11
  • 22
2
votes
1 answer

Capturing iPhone console log when running Instrument's UI Automation

In Xcode, I can run my application with the console open by using "Run->Console" and then executing a "Build and Run" command. Now I've written a UI Automation script that I would like to run while capturing the console log. When I press "record"…
DuneBug
  • 1,543
  • 4
  • 15
  • 28
2
votes
2 answers

A JavaScript exception occured: Cannot check the displayedness of a non-Element argument - error when trying to interact with webelements

This exception occurs at the line of '.click()' , '.sendkeys() or any other actions that is about to perform on an element. Webelement is accessible but actions on those webelement throw the below exception. This issue is occurring only with…
Harish Kannan
  • 465
  • 2
  • 11
  • 22
2
votes
2 answers

iPhone - Automation testing?

I am currently detecting elements by their accessibility labels when writing automation testing? This causes a lot of problems. Is this the correct way of detecting elements? If not is there a better way to detect elements without using…
aryaxt
  • 76,198
  • 92
  • 293
  • 442
2
votes
3 answers

UIAutomation with Instruments - How to tap copy/paste buttons?

I'm using Instruments for iOS automation and I can't seem to figure out how to tap options on the copy/paste menu. When I do a logElementTree(),I see that we are returning a UIEditingMenu and then three elements (which correspond to options of that…
SDQA
  • 21
  • 2
2
votes
1 answer

Running XC UI tests in parallel on device

From Xcode10 onwards we are able to run UI tests in parallel on multiple simulators. However, I could not find a way to run on multiple devices. Is that not possible? Thanks, R
rlr
  • 320
  • 2
  • 11