wait for no request on the main tab

This commit is contained in:
Emilien Devos 2024-07-20 10:49:51 +02:00
parent 0cf4c40626
commit 26bdbf71b5

View File

@ -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(