(page, server)
| 596 | |
| 597 | @pytest.mark.asyncio |
| 598 | async 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 |
nothing calls this directly
no test coverage detected