Last active
September 7, 2017 22:37
-
-
Save fernyb/09b0c51cc118ae119f35b92a68f11995 to your computer and use it in GitHub Desktop.
EarlGrey GREYElementInteraction
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [[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