GREYAnyOf

@interface GREYAnyOf : GREYBaseMatcher

Matcher for combining multiple matchers with a logical @c OR operator, so that a match occurs when any of the matchers match the element. The invocation of the matchers is in the same order in which they are passed. As soon as one of the matchers succeeds, the rest are not invoked.

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

    Declaration

    Objective-C

    - (nonnull instancetype)init;
  • Designated initializer to add all the matchers to be checked.

    Declaration

    Objective-C

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

    Swift

    init(matchers: [Any])

    Parameters

    matchers

    The matchers, one of which is required to be matched by the matcher. They are invoked in the order that they are passed in.

    Return Value

    An instance of GREYAnyOf, initialized with the provided matchers.