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

fix: Discard caching for element snapshots #371

Merged
merged 2 commits into from
Jul 23, 2020

Conversation

mykola-mokhnach
Copy link
Contributor

Unfortunately UiAutomator does not tell us anything about accessibility tree changes between findElement invokations. That is why caching of snapshots could cause the unconsistent behaviour described in appium/appium#14586. This PR eliminates snapshots caching, so now we are going to refresh the tree for each element being snapshotted.

@dpgraham
Copy link
Contributor

Codacy Here is an overview of what got changed by this pull request:

Complexity increasing per file
==============================
- app/src/main/java/io/appium/uiautomator2/model/UiElementSnapshot.java  1
         

See the complete overview on Codacy

@Auto81
Copy link

Auto81 commented Jul 23, 2020

looks to be behaving as expected

@mykola-mokhnach mykola-mokhnach merged commit e3f721b into appium:master Jul 23, 2020
@mykola-mokhnach mykola-mokhnach deleted the find_cache branch July 23, 2020 15:31
@KazuCocoa KazuCocoa mentioned this pull request Aug 15, 2020
10 tasks
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

Successfully merging this pull request may close these issues.

None yet

4 participants