MCPcopy Index your code
hub / github.com/agent0ai/agent-zero / set_checked

Method set_checked

plugins/_browser/helpers/runtime.py:1959–1978  ·  view source on GitHub ↗
(
        self,
        browser_id: int | str | None,
        ref: int | str,
        checked: bool = True,
    )

Source from the content-addressed store, hash-verified

1957 return {"action": action or {}, "state": await self._state(resolved_id)}
1958
1959 async def set_checked(
1960 self,
1961 browser_id: int | str | None,
1962 ref: int | str,
1963 checked: bool = True,
1964 ) -> dict[str, Any]:
1965 await self.ensure_started()
1966 resolved_id = self._resolve_browser_id(browser_id)
1967 page = self._page(resolved_id)
1968 await self._ensure_content_helper(page)
1969 action = await page.evaluate(
1970 "(args) => globalThis.__spaceBrowserPageContent__.setChecked(args.ref, args.checked)",
1971 {
1972 "ref": ref,
1973 "checked": bool(checked),
1974 },
1975 )
1976 await self._settle(page, short=True)
1977 self._maybe_promote(resolved_id)
1978 return {"action": action or {}, "state": await self._state(resolved_id)}
1979
1980 async def upload_file(
1981 self,

Callers 1

_dispatch_callMethod · 0.95

Calls 8

ensure_startedMethod · 0.95
_resolve_browser_idMethod · 0.95
_pageMethod · 0.95
_settleMethod · 0.95
_maybe_promoteMethod · 0.95
_stateMethod · 0.95
evaluateMethod · 0.45

Tested by

no test coverage detected