Hi,
I play around with appium java client 7.4.1 and 7.3.0 and the pinterest app. And analyze the app with the following code for example:
List<MobileElement> interactableElements = driver.findElementsByXPath(".//*[@clickable='true' or @checkable='true' or @scrollable='true']");
interactableElements.get(0).getAttribute("class");
....
As long as I’m in the overview as shown here, everything (clicking, swiping…) runs smooth and very snappy.
See:
device-2020-12-04-180049|243x500
As soon as I open an element like here:
device-2020-12-04-180121|243x500
the getAttribute() function takes forever to execute like ~10sec for one function call, whereas before this was milliseconds.
Interestingly, driver.getPageSource() also delivers results almost instantly, while it also would need to collect all attributes.
Can someone verify this behavior as a bug or tell me where the source of the error is?!