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

Function test_locators_all_inner_texts

tests/sync/test_locators.py:179–187  ·  view source on GitHub ↗
(page: Page)

Source from the content-addressed store, hash-verified

177
178
179def test_locators_all_inner_texts(page: Page) -> None:
180 page.set_content(
181 """
182 <div>A</div><div>B</div><div>C</div>
183 """
184 )
185
186 element = page.locator("div")
187 assert element.all_inner_texts() == ["A", "B", "C"]
188
189
190def test_locators_should_query_existing_element(page: Page, server: Server) -> None:

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