XCUIElementTypeQueryProvider
extension XCUIElementTypeQueryProvider where Self: DescendantsMatching
XCUIElementTypeQueryProvider extension contains additional any property
which returns all descendant objects of XCUIElementType.any type.
Example:
XCTAssertTrue(app.cells.any.count > 0)
Matches all descendants of elements from the query.
-
Creates a query that matches all descendants of the element.
Example:
Check if a view has any subview.
XCTAssertTrue(view.any.count > 0)Declaration
Swift
public var any: XCUIElementQuery { get }
XCUIElementTypeQueryProvider Extension Reference