Skip to content

Commit

Permalink
wait for no request on the main tab
Browse files Browse the repository at this point in the history
  • Loading branch information
unixfox committed Jul 20, 2024
1 parent 0cf4c40 commit 26bdbf7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 26bdbf7

Please sign in to comment.