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

Function aexecute_key_press

webarena/browser_env/actions.py:958–964  ·  view source on GitHub ↗

Press a key.

(key: str, page: APage)

Source from the content-addressed store, hash-verified

956
957
958async def aexecute_key_press(key: str, page: APage) -> None:
959 """Press a key."""
960 if "Meta" in key and "Mac" not in await page.evaluate(
961 "navigator.platform"
962 ):
963 key = key.replace("Meta", "Control")
964 await page.keyboard.press(key)
965
966
967def execute_mouse_hover(left: float, top: float, page: Page) -> None:

Callers 1

aexecute_actionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected