UIAScrollView Class Reference
| Inherits from | |
| Availability | Available in iOS 4.0 and later. |
Overview
The UIAScrollView class allows access to, and control of, the elements of a scroll view.
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.
Method | Description |
|---|---|
Returns an array of the activity indicators contained by the specified object. | |
Returns an object representing an activity view. | |
Returns an array containing the parents of the specified object. | |
Returns an array of buttons contained by the specified object. | |
Returns the specified element’s current validity status. | |
Returns an array of collection views contained by the specified object. | |
Double-taps the specified element. | |
Drags within the bounds of an element. | |
Returns an array of elements contained by the specified object. | |
Flicks within the bounds of an element. | |
Determines whether specified element receives keyboard input. | |
Returns the screen position to tap for the specified element. | |
Returns an array of images contained by the specified object. | |
Determines whether the specified element is enabled. | |
Returns the specified element’s validity status as of the most recent access. | |
Determines whether the specified element is visible on the screen. | |
Returns a string containing the label attribute of the element. | |
Returns an array of links contained by the specified object. | |
Logs information about the specified element. | |
Logs information about the specified element and all of its subelements. | |
Returns a string containing the name attribute of the element. | |
Returns the app’s navigation bar. | |
Returns an array of navigation bar objects contained by this object. | |
Returns an array of page indicators contained by the specified object. | |
Returns the parent of the specified element. | |
Returns an array of picker objects contained by the specified object. | |
Returns the popover object associated with the specified object. | |
Returns an array of progress indicators contained by the specified object. | |
Returns the position of the object on the main screen. | |
Perform a rotation gesture centered on the specified element. | |
Scrolls until the specified element is visible in a container view. | |
Returns an array of scroll views contained by the specified object. | |
Returns an array of search bars contained by the specified object. | |
Returns an array of secure text fields contained by the specified object. | |
Returns an array of segmented controls contained by the specified object. | |
Returns an array of sliders contained by the specified object. | |
Returns an array of static texts contained by the specified object. | |
Returns an array of switches contained by the specified object. | |
Returns the specified tab bar. | |
Returns an array of tab bars contained by this object. | |
Returns an array of table views contained by the specified object. | |
Taps the specified element. | |
Performs the specified gesture on the specified element using a dictionary to specify gesture attributes. | |
Returns an array of text fields contained by the specified object. | |
Returns an array of text views contained by the specified object. | |
Returns the specified toolbar. | |
Returns an array of toolbars contained by this object. | |
Touches the specified element and holds for the specified duration. | |
Performs a two-finger (two-touch) tap on this element. | |
Returns a string containing a value attribute specific to the type of element. | |
Waits for the specified element to become invalid. | |
Returns an array of web views contained by the specified object. | |
Returns an element whose name attribute matches a specified string. | |
Returns the element matching the specified criteria. | |
Returns the element containing the specified property with the specified value. |
Methods
scrollDown
Scrolls down within the specified scroll view.
Availability
- Available in iOS 4.0 and later.
scrollLeft
Scrolls left within the specified scroll view.
Availability
- Available in iOS 4.0 and later.
scrollRight
Scrolls right within the specified scroll view.
Availability
- Available in iOS 4.0 and later.
scrollToElementWithName
Scrolls within the specified scroll view until the named element is displayed on the screen.
Parameters
- name
The name of the element to scroll to.
Availability
- Available in iOS 4.0 and later.
scrollToElementWithPredicate
Scrolls within the specified scroll view until the matching element is displayed on the screen.
Parameters
- predicateString
The predicate to define the match criteria.
Availability
- Available in iOS 4.0 and later.
scrollToElementWithValueForKey
Scrolls within the specified scroll view until the element with the specified value for the specified key is displayed on the screen.
Parameters
- value
The value for the specified key.
- key
The key for the specified value.
Availability
- Available in iOS 4.0 and later.
scrollUp
Scrolls up within the specified scroll view.
Availability
- Available in iOS 4.0 and later.
© 2012 Apple Inc. All Rights Reserved. (Last updated: 2012-09-19)