Go back
(self, request: GoBackRequest)
| 302 | ) |
| 303 | |
| 304 | async def go_back(self, request: GoBackRequest) -> ActionResult: |
| 305 | """Go back""" |
| 306 | try: |
| 307 | event = self._session.event_bus.dispatch(GoBackEvent()) |
| 308 | await event |
| 309 | memory = 'Navigated back' |
| 310 | msg = f'🔙 {memory}' |
| 311 | logger.info(msg) |
| 312 | return ActionResult( |
| 313 | success=True, |
| 314 | message=msg, |
| 315 | extra={"memory": memory} |
| 316 | ) |
| 317 | except Exception as e: |
| 318 | logger.error(f'Failed to dispatch GoBackEvent: {type(e).__name__}: {e}') |
| 319 | error_msg = f'Failed to go back: {str(e)}' |
| 320 | return ActionResult( |
| 321 | success=False, |
| 322 | message=error_msg, |
| 323 | extra={"error": error_msg} |
| 324 | ) |
| 325 | |
| 326 | async def wait(self, request: WaitRequest) -> ActionResult: |
| 327 | """Wait for x seconds (default 3) (max 30 seconds). This can be used to wait until the page is fully loaded.""" |
nothing calls this directly
no test coverage detected