MCPcopy Create free account
hub / github.com/THUDM/AgentTuning / locate

Function locate

eval_heldout/webarena/browser_env/actions.py:981–988  ·  view source on GitHub ↗
(locator_calls: list[ParsedPlaywrightCode], page: Page)

Source from the content-addressed store, hash-verified

979
980@beartype
981def locate(locator_calls: list[ParsedPlaywrightCode], page: Page) -> Locator:
982 locator = page
983 for call in locator_calls:
984 function_name = call["function_name"]
985 arguments = call["arguments"]
986 keywords = call["keywords"]
987 locator = getattr(locator, function_name)(*arguments, **keywords)
988 return locator # type: ignore[return-value]
989
990
991@beartype

Callers 5

execute_playwright_clickFunction · 0.85
execute_playwright_hoverFunction · 0.85
execute_playwright_typeFunction · 0.85
execute_playwright_checkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected