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

Function test_text_content

tests/playwright_tests/test_element_handle.py:565–569  ·  view source on GitHub ↗
(page, server)

Source from the content-addressed store, hash-verified

563
564@pytest.mark.asyncio
565async def test_text_content(page, server):
566 await page.goto(server.PREFIX + "/dom.html")
567 handle = await page.query_selector("#inner")
568 assert await handle.text_content() == "Text,\nmore text"
569 assert await page.text_content("#inner") == "Text,\nmore text"
570
571
572@pytest.mark.asyncio

Callers

nothing calls this directly

Calls 1

query_selectorMethod · 0.45

Tested by

no test coverage detected