appium-uiautomator2-server icon indicating copy to clipboard operation
appium-uiautomator2-server copied to clipboard

Strange! getPageSource return different hierarchy on same webview page

Open andrewleo opened this issue 7 years ago • 1 comments

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: image

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!

andrewleo avatar Oct 10 '17 08:10 andrewleo

May someone help me?

andrewleo avatar Oct 16 '17 02:10 andrewleo