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

Function locate

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

Source from the content-addressed store, hash-verified

1120
1121
1122def locate(locator_calls: list[ParsedPlaywrightCode], page: Page) -> Locator:
1123 locator = page
1124 for call in locator_calls:
1125 function_name = call["function_name"]
1126 arguments = call["arguments"]
1127 keywords = call["keywords"]
1128 locator = getattr(locator, function_name)(*arguments, **keywords)
1129 return locator # type: ignore[return-value]
1130
1131
1132async def alocate(

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