(context: BrowserContext)
| 285 | |
| 286 | |
| 287 | async def test_should_work(context: BrowserContext) -> None: |
| 288 | page = await context.new_page() |
| 289 | async with page.expect_popup() as popup_info: |
| 290 | await page.evaluate('window.__popup = window.open("about:blank")') |
| 291 | popup = await popup_info.value |
| 292 | assert await page.evaluate("!!window.opener") is False |
| 293 | assert await popup.evaluate("!!window.opener") |
| 294 | |
| 295 | |
| 296 | async def test_should_work_with_window_features( |
nothing calls this directly
no test coverage detected