Instance Method

click()

Sends a click event to a hittable point computed for the element.

Declaration

func click()

Discussion

If the element exists within a scrollable view but is offscreen, XCTest will attempt to scroll the element onscreen before performing the click.

See Also

Clicking

func click(forDuration: TimeInterval, thenDragTo: XCUIElement)

Clicks and holds for a specified duration (generally long enough to start a drag operation) then drags to the other element.

func doubleClick()

Sends a double click event to a hittable point computed for the element.

func rightClick()

Sends a right click event to a hittable point computed for the element.