UIAEditingMenu Class Reference

Inherits from

Overview

The UIAEditingMenu class allows access to, and control of, your app’s edit menu.

For an explanation of how to use this class 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 menu.

activityView

Returns an object representing an activity view.

ancestry

Returns an array containing the parents of the specified menu.

buttons

Returns an array of buttons contained by the specified menu.

checkIsValid

Returns the specified element’s current validity status.

collectionViews

Returns an array of collection views contained by the specified menu.

doubleTap

Double-taps the specified element.

dragInsideWithOptions

Drags within the bounds of an element.

elements

Returns an array of elements contained by the specified menu.

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 menu.

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 menu.

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 menu.

pageIndicators

Returns an array of page indicators contained by the specified menu.

parent

Returns the parent of the specified element.

pickers

Returns an array of picker objects contained by the specified menu.

popover

Returns the popover object associated with the specified menu.

progressIndicators

Returns an array of progress indicators contained by the specified menu.

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 menu.

searchBars

Returns an array of search bars contained by the specified menu.

secureTextFields

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

segmentedControls

Returns an array of segmented controls contained by the specified menu.

sliders

Returns an array of sliders contained by the specified menu.

staticTexts

Returns an array of static texts contained by the specified menu.

switches

Returns an array of switches contained by the specified menu.

tabBar

Returns the specified tab bar.

tabBars

Returns an array of tab bars contained by this menu.

tableViews

Returns an array of table views contained by the specified menu.

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 menu.

textViews

Returns an array of text views contained by the specified menu.

toolbar

Returns the specified toolbar.

toolbars

Returns an array of toolbars contained by this menu.

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 menu.

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.