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

Function test_text_content

tests/sync/test_element_handle.py:528–533  ·  view source on GitHub ↗
(page: Page, server: Server)

Source from the content-addressed store, hash-verified

526
527
528def test_text_content(page: Page, server: Server) -> None:
529 page.goto(f"{server.PREFIX}/dom.html")
530 handle = page.query_selector("#inner")
531 assert handle
532 assert handle.text_content() == "Text,\nmore text"
533 assert page.text_content("#inner") == "Text,\nmore text"
534
535
536def 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