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

Function test_should_wait_for_hidden

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

Source from the content-addressed store, hash-verified

507
508
509async def test_should_wait_for_hidden(page: Page) -> None:
510 await page.set_content("<div><span>target</span></div>")
511 locator = page.locator("span")
512 task = locator.wait_for(state="hidden")
513 await page.eval_on_selector("div", "div => div.innerHTML = ''")
514 await task
515
516
517async def test_should_combine_visible_with_other_selectors(page: Page) -> None:

Callers

nothing calls this directly

Calls 4

set_contentMethod · 0.45
locatorMethod · 0.45
wait_forMethod · 0.45
eval_on_selectorMethod · 0.45

Tested by

no test coverage detected