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

Function test_set_checked

tests/playwright_tests/test_element_handle.py:688–694  ·  view source on GitHub ↗
(page: Page)

Source from the content-addressed store, hash-verified

686
687@pytest.mark.asyncio
688async def test_set_checked(page: Page):
689 await page.set_content("`<input id='checkbox' type='checkbox'></input>`")
690 input = await page.query_selector("input")
691 await input.set_checked(True)
692 assert await page.evaluate("checkbox.checked")
693 await input.set_checked(False)
694 assert await page.evaluate("checkbox.checked") is False

Callers

nothing calls this directly

Calls 2

query_selectorMethod · 0.45
set_checkedMethod · 0.45

Tested by

no test coverage detected