XCUIElementQuery
-
safe to get index
Declaration
Swift
func element(safeIndex index: Int) -> XCUIElement?Parameters
indexindex
Return Value
optional element
-
asset empty of query
Declaration
Swift
func assertEmpty(empty: Bool = false) -> XCUIElementQuery?Parameters
emptybool value
Return Value
optional query self
-
get the results which matching the EasyPredicates
Declaration
Swift
func matching(predicates: [EasyPredicate], logic: NSCompoundPredicate.LogicalType = .and) -> XCUIElementQueryParameters
predicatesEasyPredicate’s rules
logicrules relate
Return Value
ElementQuery
-
Declaration
Swift
func matching(predicate: EasyPredicate) -> XCUIElementQuery -
get the taget element which matching the EasyPredicates
Declaration
Swift
func element(predicates: [EasyPredicate], logic: NSCompoundPredicate.LogicalType = .and) -> XCUIElementParameters
predicatesEasyPredicate’s rules
logicrule’s relate
Return Value
result target
-
Declaration
Swift
func element(predicate: EasyPredicate) -> XCUIElement -
get the results in the query’s descendants which matching the EasyPredicates
Declaration
Swift
func descendants(predicates: [EasyPredicate], logic: NSCompoundPredicate.LogicalType = .and) -> XCUIElementQueryParameters
predicatesEasyPredicate’s rules
logicrule’s relate
Return Value
result target
-
Declaration
Swift
func descendants(predicate: EasyPredicate) -> XCUIElementQuery -
filter the query by rules to create new query
Declaration
Swift
func containing(predicates: [EasyPredicate], logic: NSCompoundPredicate.LogicalType = .and) -> XCUIElementQueryParameters
predicatesEasyPredicate’s rules
logicrule’s relate
Return Value
result target
-
Declaration
Swift
func containing(predicate: EasyPredicate) -> XCUIElementQuery
XCUIElementQuery Extension Reference