Fanil Suratwala
Fanil Suratwala

Reputation: 60

The DOM showing elements from previous screen [Appium]

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

Answers (2)

Andrey Merkulov
Andrey Merkulov

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

Slav Kurochkin
Slav Kurochkin

Reputation: 424

Try refresh screen by clicking the refresh button in the inspector, that usually solves it for me in react-native app

appium refresh

Upvotes: 0

Related Questions