google / google/EarlGrey

element not found after scroll down

Open
#804 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
Objective-C
Stars
5.7k
Forks
737
Avg merge
1d 20h
Merged PRs (30d)
5

Description

After calling this code, I can see the element on the screen of my mobile phone. but earlgrey can not found the element.

`
[[EarlGrey selectElementWithMatcher:grey_allOf(grey_accessibilityID(@"tableView"), grey_kindOfClass([NSClassFromString(@"xxxx") class]), nil)]
performAction:grey_scrollInDirection(kGREYDirectionDown, 1000)];
`
`
[[EarlGrey selectElementWithMatcher:grey_accessibilityID(@"xyz")]
assertWithMatcher:grey_sufficientlyVisible()];
`

I can see from the log that element does not appear in UI hierarchy.

Please make your suggestions.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.