Contents

element(matching:)

Matches the predicate.

Declaration

func element(matching predicate: NSPredicate) -> XCUIElement

Parameters

  • predicate:

    The predicate to match.

Discussion

The predicate evaluates against objects that conform to the XCUIElementAttributes protocol.

See Also

Accessing matched elements