Query interactive elements from the panel.
(self, panel: str, type_filter: str | None, class_filter: str | None)
| 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.""" |
| 132 | resp = self._uitree.query( |
| 133 | panel=panel, |
| 134 | type=type_filter, |
| 135 | class_name=class_filter, |
| 136 | ) |
| 137 | elements: list[dict[str, Any]] = resp.get("matches", []) |
| 138 | return elements |
| 139 | |
| 140 | def _check_errors(self) -> list[dict[str, Any]]: |
| 141 | """Check console for new errors since last clear, then clear to avoid duplicates.""" |