process as the app under test, and has access to the same memory as the app. ▸ Uses private methods to learn view hierarchy and inject touches. ▸ Works in conjunction with the XCTest framework.
match multiple elements. ▸ Must be narrowed down until a single element is identified. ▸ You can combine multiple GREYMatchers using - grey_allOf() grey_anyOf() grey_not() ▸ Example: let sendButtonMatcher : <GREYMatcher> = grey_allOf(grey_accessibilityLabel("Send"), grey_sufficientlyVisible(), nil) EarlGrey().selectElementWithMatcher(sendButtonMatcher)
grey_scrollInDirection(GREYDirection direction, CGFloat amount) ▸ Example: // Select the button with Accessibility ID “clickMe" and perform Tap Action. EarlGrey().selectElementWithMatcher(grey_accessibilityID(“ClickMe”)). performAction(grey_tap())
with Accessibility ID “ClickMe" and perform Tap Action. EarlGrey().selectElementWithMatcher(grey_accessibilityID(“ClickMe”)) .assertWithMatcher(grey_sufficientlyVisible())