Protocols

The following protocols are available globally.

  • A protocol for actions that are performed on accessibility elements.

    See more

    Declaration

    Objective-C

    @protocol GREYAction <NSObject>

    Swift

    protocol GREYAction : NSObjectProtocol
  • Protocol to which EarlGrey assertion classes must conform.

    See more

    Declaration

    Objective-C

    @protocol GREYAssertion <NSObject>

    Swift

    protocol GREYAssertion : NSObjectProtocol
  • A protocol that defines the layout of an object that conforms to GREYMatcher.

    See more

    Declaration

    Objective-C

    @protocol GREYDescription <NSObject>

    Swift

    protocol GREYDescription : NSObjectProtocol
  • Protocol for handling failures (such as failure of actions and assertions) raised by EarlGrey.

    See more

    Declaration

    Objective-C

    @protocol GREYFailureHandler <NSObject>

    Swift

    protocol GREYFailureHandler : NSObjectProtocol
  • A protocol for resources that can potentially modify the UI and should be synchronized with before performing any interaction or verification with UI element.

    See more

    Declaration

    Objective-C

    @protocol GREYIdlingResource <NSObject>

    Swift

    protocol GREYIdlingResource : NSObjectProtocol
  • Represents an interaction with a UI element.

    See more

    Declaration

    Objective-C

    @protocol GREYInteraction <NSObject>

    Swift

    protocol GREYInteraction : NSObjectProtocol
  • Matchers are another way of expressing simple or complex logical expressions. This protocol defines a set of methods that must be implemented by every matcher object.

    See more

    Declaration

    Objective-C

    @protocol GREYMatcher <NSObject>

    Swift

    protocol GREYMatcher : NSObjectProtocol
  • A protocol for providing arbitrary data as an enumeration.

    See more

    Declaration

    Objective-C

    @protocol GREYProvider <NSObject>

    Swift

    protocol GREYProvider : NSObjectProtocol