Click at the current mouse position.
(page: Page)
| 864 | |
| 865 | @beartype |
| 866 | def 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 |
no test coverage detected