(page: Page)
| 5 | |
| 6 | @pytest.mark.asyncio |
| 7 | async def test_browserleaks(page: Page): |
| 8 | await page.goto("https://browserleaks.com/webrtc") |
| 9 | await page.wait_for_timeout(2000) |
| 10 | |
| 11 | leak_check = await page.locator("[id='rtc-leak']").text_content() |
| 12 | assert "No Leak" in leak_check |
| 13 | |
| 14 | |
| 15 | @pytest.mark.asyncio |