MCPcopy Index your code
hub / github.com/microsoft/playwright-python / test_click

Function test_click

tests/async/test_element_handle.py:294–299  ·  view source on GitHub ↗
(page: Page, server: Server)

Source from the content-addressed store, hash-verified

292
293
294async def test_click(page: Page, server: Server) -> None:
295 await page.goto(server.PREFIX + "/input/button.html")
296 button = await page.query_selector("button")
297 assert button
298 await button.click()
299 assert await page.evaluate("result") == "Clicked"
300
301
302async def test_click_with_node_removed(page: Page, server: Server) -> None:

Callers

nothing calls this directly

Calls 4

gotoMethod · 0.45
query_selectorMethod · 0.45
clickMethod · 0.45
evaluateMethod · 0.45

Tested by

no test coverage detected