appium-uiautomator2-server
appium-uiautomator2-server copied to clipboard
Strange! getPageSource return different hierarchy on same webview page
Enviroments: Appium 1.6.5 + appium-uiautomator2-server 0.1.8 + uiautomator2
-
When the webview load first time, use getPageSource return: https://gist.github.com/andrewleo/4e28ff152ad52321c7bbdf89dba2406c
-
then second time I use getPageSource, return the expected codes: https://gist.github.com/andrewleo/e55aca06d85b299f875592bc78bc6338
second time return details about webview, that is what I expect:
then I use the UiDevice APi dumpWindowHierarchy, the same results as above
ByteArrayOutputStream baos = new ByteArrayOutputStream();
getUiDevice().dumpWindowHierarchy(baos);
So can anybody tell me the reason? Is it a Bug of Android or some features of Webview make this happen? Much thanks!
May someone help me?