(page: Page, server)
| 255 | |
| 256 | @pytest.mark.asyncio |
| 257 | async def test_strict_mode(page: Page, server): |
| 258 | await page.goto(server.EMPTY_PAGE) |
| 259 | await page.set_content( |
| 260 | """ |
| 261 | <button>Hello</button> |
| 262 | <button>Hello</button> |
| 263 | """ |
| 264 | ) |
| 265 | with pytest.raises(Error): |
| 266 | await page.text_content("button", strict=True) |
| 267 | with pytest.raises(Error): |
| 268 | await page.query_selector("button", strict=True) |
nothing calls this directly
no test coverage detected