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

Function aexecute_click_current

eval_heldout/webarena/browser_env/actions.py:878–889  ·  view source on GitHub ↗

Click at the current mouse position.

(page: APage)

Source from the content-addressed store, hash-verified

876
877@beartype
878async def aexecute_click_current(page: APage) -> None:
879 """Click at the current mouse position."""
880 locators = page.locator("*:focus")
881 locator_count = await locators.count()
882 if not locator_count:
883 for frame in page.frames[1:]:
884 locators = frame.locator("*:focus")
885 locator_count = await locators.count()
886 if locator_count:
887 break
888 await locators.click()
889 await page.wait_for_load_state("load")
890
891
892@beartype

Callers 1

aexecute_actionFunction · 0.85

Calls 2

countMethod · 0.80
clickMethod · 0.80

Tested by

no test coverage detected