Instance Method

accessibilityPerformPress()

Simulates clicking the element.

Required.

Declaration

func accessibilityPerformPress() -> Bool

Return Value

true if the action was successfully triggered; otherwise, false. This method does not indicate the success or failure of the action, just the fact that the action was successfully triggered.

Discussion

Use this method on elements that behave like buttons.

See Also

Confirming and Canceling Operations

func accessibilityPerformCancel() -> Bool

Cancels the current operation.

Required.

func accessibilityPerformConfirm() -> Bool

Simulates pressing Return in the element.

Required.

func accessibilityPerformDecrement() -> Bool

Decrements the element’s value.

Required.

func accessibilityPerformDelete() -> Bool

Deletes the element’s value.

Required.

func accessibilityPerformIncrement() -> Bool

Increments the element’s value.

Required.

func accessibilityPerformPick() -> Bool

Selects the element.

Required.

func accessibilityPerformRaise() -> Bool

Brings this window to the front.

Required.

func accessibilityPerformShowAlternateUI() -> Bool

Displays the element’s alternate UI.

Required.

func accessibilityPerformShowDefaultUI() -> Bool

Returns to the element’s original UI.

Required.

func accessibilityPerformShowMenu() -> Bool

Displays this menu element.

Required.

func isAccessibilitySelectorAllowed(Selector) -> Bool

Indicates whether the provided selector can be invoked on the element.

Required.