Handle wait action.
(self, action: dict, width: int, height: int)
| 235 | return ActionResult(True, False) |
| 236 | |
| 237 | def _handle_wait(self, action: dict, width: int, height: int) -> ActionResult: |
| 238 | """Handle wait action.""" |
| 239 | duration_str = action.get("duration", "1 seconds") |
| 240 | try: |
| 241 | duration = float(duration_str.replace("seconds", "").strip()) |
| 242 | except ValueError: |
| 243 | duration = 1.0 |
| 244 | |
| 245 | time.sleep(duration) |
| 246 | return ActionResult(True, False) |
| 247 | |
| 248 | def _handle_takeover(self, action: dict, width: int, height: int) -> ActionResult: |
| 249 | """Handle takeover request (login, captcha, etc.).""" |
nothing calls this directly
no test coverage detected