Skip to content
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

waitForExists fails when changing Fragments #38

Open
barkside opened this issue Dec 13, 2018 · 0 comments
Open

waitForExists fails when changing Fragments #38

barkside opened this issue Dec 13, 2018 · 0 comments

Comments

@barkside
Copy link

waitForExists works fine when I change activities, but if in the same activity, I animate out a fragment, and animate in a new fragment, I can't find any views in the new fragment. waitForExists times out.
waitForExists still works for views in the old fragment however, so it is like a window update has not occurred.

How do I make the internal node information in the UiAutomation, or the underlying Accessibility service update when these changes occur?

Failing that, how do I cause the cache to update quickly with a RPC call? dumpViewHierarchy works, but it takes too long. I assume ReflectionUtils.clearAccessibilityCache() is the thing that works here?

Are there any events I can listen too, similar to the toast notification listener thingy, to perform this clearAccessibilityCache automatically?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant