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

Function test_locator_all_should_work

tests/async/test_locators.py:1125–1130  ·  view source on GitHub ↗
(page: Page)

Source from the content-addressed store, hash-verified

1123
1124
1125async def test_locator_all_should_work(page: Page) -> None:
1126 await page.set_content("<div><p>A</p><p>B</p><p>C</p></div>")
1127 texts = []
1128 for p in await page.locator("p").all():
1129 texts.append(await p.text_content())
1130 assert texts == ["A", "B", "C"]
1131
1132
1133async def test_locator_click_timeout_error_should_contain_call_log(page: Page) -> None:

Callers

nothing calls this directly

Calls 5

appendMethod · 0.80
set_contentMethod · 0.45
allMethod · 0.45
locatorMethod · 0.45
text_contentMethod · 0.45

Tested by

no test coverage detected