mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 12:08:21 +08:00
Fix: Resolution check for scrcpy
This commit is contained in:
@@ -226,6 +226,14 @@ class Uiautomator2(Connection):
|
||||
hierarchy = etree.fromstring(content.encode('utf-8'))
|
||||
return hierarchy
|
||||
|
||||
@retry
|
||||
def window_size_uiautomator2(self) -> t.Tuple[int, int]:
|
||||
"""
|
||||
Returns:
|
||||
(width, height)
|
||||
"""
|
||||
return self.u2.window_size()
|
||||
|
||||
@retry
|
||||
def proc_list_uiautomato2(self) -> t.List[ProcessInfo]:
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user