MCPcopy Create free account
hub / github.com/microsoft/playwright-python / test_set_content_should_work

Function test_set_content_should_work

tests/async/test_page.py:623–626  ·  view source on GitHub ↗
(page: Page, server: Server)

Source from the content-addressed store, hash-verified

621
622
623async def test_set_content_should_work(page: Page, server: Server) -> None:
624 await page.set_content("<div>hello</div>")
625 result = await page.content()
626 assert result == expected_output
627
628
629async def test_set_content_should_work_with_domcontentloaded(

Callers

nothing calls this directly

Calls 2

set_contentMethod · 0.45
contentMethod · 0.45

Tested by

no test coverage detected