fix: guard transient controls and verify timeline endpoints
This commit is contained in:
1 parent
479a185192
commit
00e62a663a
29 files changed
+1150
-90
No files matched your search
@@ -337,6 +337,13 @@ class AndroidAdbDriver(BaseDeviceDriver):
|
||||
async def long_press(self, x: int, y: int, duration_ms: int = 1000) -> bool:
|
||||
return await self.tap(x=x, y=y, duration_ms=duration_ms)
|
||||
|
||||
async def get_ui_elements(self) -> list[dict]:
|
||||
"""Resolve short-lived native targets without screenshot settling/encoding."""
|
||||
if self._ui_adb_client is None:
|
||||
return await super().get_ui_elements()
|
||||
xml = await asyncio.to_thread(self._ui_adb_client.get_hierarchy)
|
||||
return _parse_hierarchy_xml_to_elements(xml)
|
||||
|
||||
async def swipe(
|
||||
self,
|
||||
start_x: int,
|
||||
|
||||
Reference in new issue
Block a user