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

Function test_strict_mode

tests/playwright_tests/test_frames.py:257–268  ·  view source on GitHub ↗
(page: Page, server)

Source from the content-addressed store, hash-verified

255
256@pytest.mark.asyncio
257async 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)

Callers

nothing calls this directly

Calls 1

query_selectorMethod · 0.45

Tested by

no test coverage detected