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

Function execute_click_current

eval_heldout/webarena/browser_env/actions.py:866–874  ·  view source on GitHub ↗

Click at the current mouse position.

(page: Page)

Source from the content-addressed store, hash-verified

864
865@beartype
866def execute_click_current(page: Page) -> None:
867 """Click at the current mouse position."""
868 locators = page.locator("*:focus")
869 if not locators.count():
870 for frame in page.frames[1:]:
871 locators = frame.locator("*:focus")
872 if locators.count():
873 break
874 locators.click()
875
876
877@beartype

Callers 1

execute_actionFunction · 0.85

Calls 2

countMethod · 0.80
clickMethod · 0.80

Tested by

no test coverage detected