From 26bdbf71b5ea1d698674e4bc1bf900d6810afb51 Mon Sep 17 00:00:00 2001 From: Emilien Devos <4016501+unixfox@users.noreply.github.com> Date: Sat, 20 Jul 2024 10:49:51 +0200 Subject: [PATCH] wait for no request on the main tab --- index.py | 1 + 1 file changed, 1 insertion(+) diff --git a/index.py b/index.py index 546c2c1..8a01d56 100644 --- a/index.py +++ b/index.py @@ -12,6 +12,7 @@ async def main(): accept_terms = await tab.find("Accept all") await accept_terms.click() page = await browser.get(tab_url) + await tab.wait(cdp.network.RequestWillBeSent) iframe = await tab.select("iframe") iframe_tab: uc.Tab = next( filter(