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

Function aexecute_click_current

webarena/browser_env/actions.py:1024–1035  ·  view source on GitHub ↗

Click at the current mouse position.

(page: APage)

Source from the content-addressed store, hash-verified

1022
1023
1024async def aexecute_click_current(page: APage) -> None:
1025 """Click at the current mouse position."""
1026 locators = page.locator("*:focus")
1027 locator_count = await locators.count()
1028 if not locator_count:
1029 for frame in page.frames[1:]:
1030 locators = frame.locator("*:focus")
1031 locator_count = await locators.count()
1032 if locator_count:
1033 break
1034 await locators.click()
1035 await page.wait_for_load_state("load")
1036
1037
1038def execute_type(keys: list[int], page: Page) -> None:

Callers 1

aexecute_actionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected