appium / appium-uiautomator2-server

Appium UiAutomator/UiObject2-based server for Android UI automation. This module is used by appium-uiautomator2-driver component
Apache License 2.0
318 stars 226 forks source link

[Bug] The value of "bounds" attribute is incorrect on some elements on "Calls" app #641

Open kimduquan01 opened 1 month ago

kimduquan01 commented 1 month ago

Reproduce steps:

The value of "bounds" attribute is incorrect, the height value is too small.

KazuCocoa commented 1 month ago

Perhaps the relevant code is https://github.com/appium/appium-uiautomator2-server/blob/bb18a50f6131b0ffa8c353de7f995ab48a59ae2b/app/src/main/java/io/appium/uiautomator2/core/AxNodeInfoHelper.java#L217-L234. You could debug it if the return values were by the Android OS itself. If it was by Android API (not in the uia2 server's calculation code), unfortunately, nothing can be done on the Appium side right now.