Contents

containing(_:identifier:)

Returns a new query that matches elements that contain a descendant of the requested type and an identifying property that matches a provided identifier.

Declaration

func containing(_ elementType: XCUIElement.ElementType, identifier: String?) -> XCUIElementQuery

Parameters

Return Value

A new query that defines a search that extends the search criteria of the receiver. The new search finds elements that match the original search and contain elements of the requested type that have an identifying property that matches a provided identifier. For the list of the types, see XCUIElement.ElementType.

See Also

Creating new queries