mirror of
https://github.com/iv-org/youtube-trusted-session-generator.git
synced 2025-01-15 16:12:21 +01:00
wait for no request on the main tab
This commit is contained in:
parent
0cf4c40626
commit
26bdbf71b5
1 changed files with 1 additions and 0 deletions
1
index.py
1
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(
|
||||
|
|
Loading…
Reference in a new issue