Handle app launch action.
(self, action: dict, width: int, height: int)
| 124 | return x, y |
| 125 | |
| 126 | def _handle_launch(self, action: dict, width: int, height: int) -> ActionResult: |
| 127 | """Handle app launch action.""" |
| 128 | app_name = action.get("app") |
| 129 | if not app_name: |
| 130 | return ActionResult(False, False, "No app name specified") |
| 131 | |
| 132 | success = launch_app( |
| 133 | app_name, wda_url=self.wda_url, session_id=self.session_id |
| 134 | ) |
| 135 | if success: |
| 136 | return ActionResult(True, False) |
| 137 | return ActionResult(False, False, f"App not found: {app_name}") |
| 138 | |
| 139 | def _handle_tap(self, action: dict, width: int, height: int) -> ActionResult: |
| 140 | """Handle tap action.""" |
nothing calls this directly
no test coverage detected