New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
element not found after scroll down #804
Comments
Please use the usingSearchAction:onElementWithMatcher: method for finding the element. |
I tried what you said, but it's a tableview. In the process of sliding online, the log shows that my target element is not in it UI hierarchy. |
What is the way to refresh UI hierarchy manually? |
When I used SearchAction: onElementWithMatcher: method, I observed through accessibility inspector that UI hierarchy was not updated |
Got an error log? Would be easier to help you with that. |
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.
The text was updated successfully, but these errors were encountered: