Skip to content

Commit

Permalink
chg: Catch more errors, click on agree
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafiot committed Jan 26, 2025
1 parent e4f980a commit 1bcd98a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions playwrightcapture/capture.py
Original file line number Diff line number Diff line change
Expand Up @@ -696,6 +696,7 @@ async def __frame_consent(self, frame: Frame) -> bool:
"Accept",
"Agree and close",
"I agree",
"Agree",
# Dutch
"Accepteer",
# Spanish
Expand Down Expand Up @@ -1414,6 +1415,8 @@ def _retry_browser_error(self, exception: Error) -> bool:
'Error receiving data: Connection reset by peer',
'Internal SOCKSv5 proxy server error.',
'Host unreachable through SOCKSv5 server.',
# JS stuff
'TurnstileError: [Cloudflare Turnstile] Error: 300030.',
# The browser barfed
'Target page, context or browser has been closed',
]:
Expand Down

0 comments on commit 1bcd98a

Please sign in to comment.