mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-30 15:33:52 +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
|
@retry
|
||||||
def dump_hierarchy_uiautomator2(self) -> etree._Element:
|
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'))
|
hierarchy = etree.fromstring(content.encode('utf-8'))
|
||||||
return hierarchy
|
return hierarchy
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user