MCPcopy Index your code
hub / github.com/microsoft/playwright-python / test_text_content

Function test_text_content

tests/async/test_element_handle.py:649–654  ·  view source on GitHub ↗
(page: Page, server: Server)

Source from the content-addressed store, hash-verified

647
648
649async def test_text_content(page: Page, server: Server) -> None:
650 await page.goto(f"{server.PREFIX}/dom.html")
651 handle = await page.query_selector("#inner")
652 assert handle
653 assert await handle.text_content() == "Text,\nmore text"
654 assert await page.text_content("#inner") == "Text,\nmore text"
655
656
657async def test_check_the_box(page: Page) -> None:

Callers

nothing calls this directly

Calls 3

gotoMethod · 0.45
query_selectorMethod · 0.45
text_contentMethod · 0.45

Tested by

no test coverage detected