Skip to content

Instantly share code, notes, and snippets.

@fernyb
Last active September 7, 2017 22:37
Show Gist options
  • Select an option

  • Save fernyb/09b0c51cc118ae119f35b92a68f11995 to your computer and use it in GitHub Desktop.

Select an option

Save fernyb/09b0c51cc118ae119f35b92a68f11995 to your computer and use it in GitHub Desktop.
EarlGrey GREYElementInteraction
[[CustomAction sharedInstance] setRootProvider:cellView];
GREYElementInteraction *elementInteraction = [[GREYElementInteraction alloc] initWithElementMatcher:matcher];
[elementInteraction inRoot:nil];
[elementInteraction setDataSource:[CustomAction sharedInstance]];
[elementInteraction assertWithMatcher:grey_sufficientlyVisible() error:&error];
if (error) {
} else {
dispatch_queue_t concurrent_queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0);
dispatch_sync(concurrent_queue, ^{
NSLog(@"*** FOUND ELEMENT => %@", [cellView performSelector:@selector(recursiveDescription)]);
});
[elementInteraction assertWithMatcher:withMatcher];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment