INNER CODE UNIT · Python
get
browser-use/macos-harness · src/macos_harness/controls.py:88
def get(
self, element_index: int, attributes: str | Iterable[str] = "AXValue"
) -> Any:
if isinstance(attributes, str):
return self._host.get(element_index, attributes)
return self._host.get_attributes(element_index, attributes)
def set(self, element_index: int, attribute: str, value: Any) -> None:
self._host.set(element_index, value, attribute)
def actions(self, element_index: int) -> list[str]:
return self._host._actions(self._host._element(element_index))
def perform(self, element_index: int, action: str = "AXPress") -> None:
self._host.perform_action(element_index, action)
def parameterized(self, element_index: int, attribute: str, parameter: Any) -> Any:
error, value = AS.AXUIElementCopyParameterizedAttributeValue(