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

Function test_click_for_TextNodes

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

Source from the content-addressed store, hash-verified

316
317
318async def test_click_for_TextNodes(page: Page, server: Server) -> None:
319 await page.goto(server.PREFIX + "/input/button.html")
320 buttonTextNode = cast(
321 ElementHandle,
322 await page.evaluate_handle('document.querySelector("button").firstChild'),
323 )
324 await buttonTextNode.click()
325 assert await page.evaluate("result") == "Clicked"
326
327
328async def test_click_throw_for_detached_nodes(page: Page, server: Server) -> None:

Callers

nothing calls this directly

Calls 4

gotoMethod · 0.45
evaluate_handleMethod · 0.45
clickMethod · 0.45
evaluateMethod · 0.45

Tested by

no test coverage detected