MCPcopy Create free account
hub / github.com/Vinyzu/Botright / test_focus_a_button

Function test_focus_a_button

tests/playwright_tests/test_element_handle.py:598–603  ·  view source on GitHub ↗
(page, server)

Source from the content-addressed store, hash-verified

596
597@pytest.mark.asyncio
598async def test_focus_a_button(page, server):
599 await page.goto(server.PREFIX + "/input/button.html")
600 button = await page.query_selector("button")
601 assert await button.evaluate("button => document.activeElement === button") is False
602 await button.focus()
603 assert await button.evaluate("button => document.activeElement === button")
604
605
606@pytest.mark.asyncio

Callers

nothing calls this directly

Calls 1

query_selectorMethod · 0.45

Tested by

no test coverage detected