mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-11 20:58:19 +08:00
Fix: No compress in u2.dump_hierarchy
Donno why setting compressed=True may drop resource-id of nodes
This commit is contained in:
@@ -376,7 +376,8 @@ class Uiautomator2(Connection):
|
||||
|
||||
@retry
|
||||
def dump_hierarchy_uiautomator2(self) -> etree._Element:
|
||||
content = self.u2.dump_hierarchy(compressed=True)
|
||||
content = self.u2.dump_hierarchy(compressed=False)
|
||||
# print(content)
|
||||
hierarchy = etree.fromstring(content.encode('utf-8'))
|
||||
return hierarchy
|
||||
|
||||
|
||||
Reference in New Issue
Block a user