Contents

matching(_:)

Returns a new query that matches elements that meet the logical conditions of the provided predicate.

Declaration

func matching(_ predicate: NSPredicate) -> XCUIElementQuery

Parameters

  • predicate:

    The predicate used to evaluate each element.

Return Value

A new query that defines a search that extends the search criteria of the receiver. The new search matches elements that match the original search and also meet the logical conditions of the provided predicate.

Discussion

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

See Also

Creating new queries