mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-11 23:18:22 +08:00
Add: [ALAS] Add interval on dump_hierarchy()
(cherry picked from commit 00f3bf749542c6db1aee77d2cc08081e1c3f5189)
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
import collections
|
||||
from datetime import datetime
|
||||
|
||||
from lxml import etree
|
||||
|
||||
# Patch pkg_resources before importing adbutils and uiautomator2
|
||||
from module.device.pkg_resources import get_distribution
|
||||
|
||||
@@ -175,6 +177,10 @@ class Device(Screenshot, Control, AppControl):
|
||||
|
||||
return self.image
|
||||
|
||||
def dump_hierarchy(self) -> etree._Element:
|
||||
self.stuck_record_check()
|
||||
return super().dump_hierarchy()
|
||||
|
||||
def release_during_wait(self):
|
||||
# Scrcpy server is still sending video stream,
|
||||
# stop it during wait
|
||||
|
||||
Reference in New Issue
Block a user