(page: Page)
| 498 | |
| 499 | |
| 500 | async def test_locators_wait_for(page: Page) -> None: |
| 501 | await page.set_content("<div></div>") |
| 502 | locator = page.locator("div") |
| 503 | task = locator.wait_for() |
| 504 | await page.eval_on_selector("div", "div => div.innerHTML = '<span>target</span>'") |
| 505 | await task |
| 506 | assert await locator.text_content() == "target" |
| 507 | |
| 508 | |
| 509 | async def test_should_wait_for_hidden(page: Page) -> None: |
nothing calls this directly
no test coverage detected