Protocol

XCUIElementTypeQueryProvider

Provides ready-made queries for locating descendant UI elements.

Declaration

protocol XCUIElementTypeQueryProvider

Topics

Finding the First Matching Element

var firstMatch: XCUIElement

The first element that matches the query.

Required.

Descendant Element Queries

Accessing these properties on an instance of a conforming class (such as an XCUIElement instance or an XCUIElementQuery instance) is equivalent to calling descendants(matching:) for the corresponding element type.

Instance Properties

Relationships

See Also

UI Element Queries

class XCUIElementQuery

A query for locating UI elements.