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

Function alocate

webarena/browser_env/actions.py:1132–1141  ·  view source on GitHub ↗
(
    locator_calls: list[ParsedPlaywrightCode], page: APage
)

Source from the content-addressed store, hash-verified

1130
1131
1132async def alocate(
1133 locator_calls: list[ParsedPlaywrightCode], page: APage
1134) -> ALocator:
1135 locator = page
1136 for call in locator_calls:
1137 function_name = call["function_name"]
1138 arguments = call["arguments"]
1139 keywords = call["keywords"]
1140 locator = await getattr(locator, function_name)(*arguments, **keywords)
1141 return locator # type: ignore[return-value]
1142
1143
1144def execute_playwright_click(

Callers 5

aexecute_playwright_typeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected