XCUIElementQuery

  • safe to get index

    Declaration

    Swift

    func element(safeIndex index: Int) -> XCUIElement?

    Parameters

    index

    index

    Return Value

    optional element

  • asset empty of query

    Declaration

    Swift

    func assertEmpty(empty: Bool = false) -> XCUIElementQuery?

    Parameters

    empty

    bool value

    Return Value

    optional query self

  • get the results which matching the EasyPredicates

    Declaration

    Swift

    func matching(predicates: [EasyPredicate], logic: NSCompoundPredicate.LogicalType = .and) -> XCUIElementQuery

    Parameters

    predicates

    EasyPredicate’s rules

    logic

    rules 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) -> XCUIElement

    Parameters

    predicates

    EasyPredicate’s rules

    logic

    rule’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) -> XCUIElementQuery

    Parameters

    predicates

    EasyPredicate’s rules

    logic

    rule’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) -> XCUIElementQuery

    Parameters

    predicates

    EasyPredicate’s rules

    logic

    rule’s relate

    Return Value

    result target

  • Declaration

    Swift

    func containing(predicate: EasyPredicate) -> XCUIElementQuery