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

Function test_locators_all_inner_texts

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

Source from the content-addressed store, hash-verified

180
181
182async def test_locators_all_inner_texts(page: Page) -> None:
183 await page.set_content(
184 """
185 <div>A</div><div>B</div><div>C</div>
186 """
187 )
188
189 element = page.locator("div")
190 assert await element.all_inner_texts() == ["A", "B", "C"]
191
192
193async def test_locators_should_query_existing_element(

Callers

nothing calls this directly

Calls 3

set_contentMethod · 0.45
locatorMethod · 0.45
all_inner_textsMethod · 0.45

Tested by

no test coverage detected