android uiautomator enableMultiWindows bug?
TesterWa opened this issue · 3 comments
set enableMultiWindows:true,getPagesource Only return root,use adb shell dump Return to page source normally,Whether it is a bug of appium. test application Wechat!
Is it native elements?
The enableMultiWindows
returns views from as
是原生元素吗? 来自 as的
enableMultiWindows
返回视图, 所以它只返回 root,那么 Android 的 AccessibilityNodeInfo 也可以显示它们。
Yes ! Native element get roots It should be normal, but is there any problem with appium-ui2-server in generating the page source? Although the page source generation failed, you can get elements with Android native uiselector, provided that you call driver.source before calling findelement to empty windows in ui2-server. The cache. In order to return the element normally.
Generally the result by Appium depends on https://developer.android.com/reference/android/app/UiAutomation#getWindows() and https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo. A potential reason was they did not retuirn entire page source.
allowInvisibleElements and ignoreUnimportantViews also could help https://github.com/appium/appium-uiautomator2-driver/#elements-cannot-be-found