Inspect a specific UI element. Args: ref: Element reference ID (e.g., "ref_3"). panel: Panel name (used with name). name: Element name (used with panel). include_style: Include resolvedStyle info. include_children: Include children
(
self,
ref: str | None = None,
panel: str | None = None,
name: str | None = None,
include_style: bool = False,
include_children: bool = False,
)
| 77 | return self._conn.send_request("uitree", params) |
| 78 | |
| 79 | def inspect( |
| 80 | self, |
| 81 | ref: str | None = None, |
| 82 | panel: str | None = None, |
| 83 | name: str | None = None, |
| 84 | include_style: bool = False, |
| 85 | include_children: bool = False, |
| 86 | ) -> dict[str, Any]: |
| 87 | """Inspect a specific UI element. |
| 88 | |
| 89 | Args: |
| 90 | ref: Element reference ID (e.g., "ref_3"). |
| 91 | panel: Panel name (used with name). |
| 92 | name: Element name (used with panel). |
| 93 | include_style: Include resolvedStyle info. |
| 94 | include_children: Include children info. |
| 95 | |
| 96 | Returns: |
| 97 | Dictionary containing element details. |
| 98 | """ |
| 99 | params: dict[str, Any] = { |
| 100 | "action": "inspect", |
| 101 | "include_style": include_style, |
| 102 | "include_children": include_children, |
| 103 | } |
| 104 | if ref: |
| 105 | params["ref"] = ref |
| 106 | self._add_panel_param(params, panel) |
| 107 | if name: |
| 108 | params["name"] = name |
| 109 | return self._conn.send_request("uitree", params) |
| 110 | |
| 111 | def click( |
| 112 | self, |