UIAActivityIndicator Class Reference

Inherits from

Overview

The UIAActivityIndicator class allows access to, and control of, activity indicator elements in your app.

For an explanation of how to use this and related classes, see “Automating UI Testing” in Instruments User Guide.

Inherited Methods

Table 1 provides a list of methods inherited from UIAElement.

Table 1  Methods inherited from UIAElement

Method

Description

activityIndicators

Returns an array of the activity indicators contained by the specified activity indicator.

activityView

Returns an object representing an activity view.

ancestry

Returns an array containing the parents of the specified activity indicator.

buttons

Returns an array of buttons contained by the specified activity indicator.

checkIsValid

Returns the specified element’s current validity status.

collectionViews

Returns an array of collection views contained by the specified activity indicator.

doubleTap

Double-taps the specified element.

dragInsideWithOptions

Drags within the bounds of an element.

elements

Returns an array of elements contained by the specified activity indicator.

flickInsideWithOptions

Flicks within the bounds of an element.

hasKeyboardFocus

Determines whether specified element receives keyboard input.

hitpoint

Returns the screen position to tap for the specified element.

images

Returns an array of images contained by the specified activity indicator.

isEnabled

Determines whether the specified element is enabled.

isValid

Returns the specified element’s validity status as of the most recent access.

isVisible

Determines whether the specified element is visible on the screen.

label

Returns a string containing the label attribute of the element.

links

Returns an array of links contained by the specified activity indicator.

logElement

Logs information about the specified element.

logElementTree

Logs information about the specified element and all of its subelements.

name

Returns a string containing the name attribute of the element.

navigationBar

Returns the app’s navigation bar.

navigationBars

Returns an array of navigation bar objects contained by this activity indicator.

pageIndicators

Returns an array of page indicators contained by the specified activity indicator.

parent

Returns the parent of the specified element.

pickers

Returns an array of picker objects contained by the specified activity indicator.

popover

Returns the popover object associated with the specified activity indicator.

progressIndicators

Returns an array of progress indicators contained by the specified activity indicator.

rect

Returns the position of the object on the main screen.

rotateWithOptions

Perform a rotation gesture centered on the specified element.

scrollToVisible

Scrolls until the specified element is visible in a container view.

scrollViews

Returns an array of scroll views contained by the specified activity indicator.

searchBars

Returns an array of search bars contained by the specified activity indicator.

secureTextFields

Returns an array of secure text fields contained by the specified activity indicator.

segmentedControls

Returns an array of segmented controls contained by the specified activity indicator.

sliders

Returns an array of sliders contained by the specified activity indicator.

staticTexts

Returns an array of static texts contained by the specified activity indicator.

switches

Returns an array of switches contained by the specified activity indicator.

tabBar

Returns the specified tab bar.

tabBars

Returns an array of tab bars contained by this activity indicator.

tableViews

Returns an array of table views contained by the specified activity indicator.

tap

Taps the specified element.

tapWithOptions

Performs the specified gesture on the specified element using a dictionary to specify gesture attributes.

textFields

Returns an array of text fields contained by the specified activity indicator.

textViews

Returns an array of text views contained by the specified activity indicator.

toolbar

Returns the specified toolbar.

toolbars

Returns an array of toolbars contained by this activity indicator.

touchAndHold

Touches the specified element and holds for the specified duration.

twoFingerTap

Performs a two-finger (two-touch) tap on this element.

value

Returns a string containing a value attribute specific to the type of element.

waitForInvalid

Waits for the specified element to become invalid.

webViews

Returns an array of web views contained by the specified activity indicator.

withName

Returns an element whose name attribute matches a specified string.

withPredicate

Returns the element matching the specified criteria.

withValueForKey

Returns the element containing the specified property with the specified value.