user3535807
user3535807

Reputation: 268

Appium missing DOM objects behind screen view

For example I take an aliexpress app. As you can see on screenshot, only visible part of the screen is represented in Appium App Source window. Is it Appium or Android related? Is it possible to force one of them to return full DOM? appium_missing_DOM

Upvotes: 0

Views: 697

Answers (1)

dmle
dmle

Reputation: 3658

This is the expected behaviour: Appium on Android returns DOM only for screen visible part.

In contrast, on iOS it gets the full DOM - that can be a huge performance issue if you are using Xpath locators.

You can get less on Android by setting ignoreUnimportantViews capability but there is no way to get full DOM at once.

To get elements that are not visible you need to swipe and here you have several options:

Upvotes: 2

Related Questions