Reputation: 60
While inspecting the Android Application using Appium-Inspector, some elements from previous screen are also getting inspected and are present in the Element Hierarchy.
The App is built on react-native.
Upvotes: 0
Views: 1159
Reputation: 21
Try to use ignoreUnimportantViews=true capability to get only active screen elements. Keep in mind that this capability is only applicable for Android See more at https://appium.io/docs/en/writing-running-appium/caps/
Upvotes: 2
Reputation: 424
Try refresh screen by clicking the refresh button in the inspector, that usually solves it for me in react-native app
Upvotes: 0