GREYAllOf

@interface GREYAllOf : GREYBaseMatcher

A matcher for combining multiple matchers with a logical @c AND operator, so that a match only occurs when all combined matchers match the element. The invocation of the matchers is in the same order in which they are passed. As soon as one matcher fails, the rest of the matchers are not invoked.

  • @remark init is not an available initializer. Use the other initializers.

    Declaration

    Objective-C

    - (nonnull instancetype)init;
  • Designated initializer that adds the different matchers to be combined.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithMatchers:
        (nonnull NSArray<__kindof id<GREYMatcher>> *)matchers;

    Swift

    init(matchers: [Any])

    Parameters

    matchers

    Matchers that conform to GREYMatcher and will be combined together with a logical AND in the order they are passed in.

    Return Value

    An instance of GREYAllOf, initialized with the provided @c matchers.