Check for errors and return True if should stop.
(self, result: MonkeyResult, stop_on_error: bool)
| 120 | ) |
| 121 | |
| 122 | def _handle_errors(self, result: MonkeyResult, stop_on_error: bool) -> bool: |
| 123 | """Check for errors and return True if should stop.""" |
| 124 | errors = self._check_errors() |
| 125 | if errors: |
| 126 | result.errors.extend(errors) |
| 127 | return stop_on_error |
| 128 | return False |
| 129 | |
| 130 | def _query_elements(self, panel: str, type_filter: str | None, class_filter: str | None) -> list[dict[str, Any]]: |
| 131 | """Query interactive elements from the panel.""" |