Instance Method

children(matching:)

Returns a query for all direct children of the element matching the specified type.

Declaration

func children(matching type: XCUIElement.ElementType) -> XCUIElementQuery

See Also

Querying Descendant Elements

func descendants(matching: XCUIElement.ElementType) -> XCUIElementQuery

Returns a query for all descendants of the element matching the specified type.