Skip to content

Commit 4516c98

Browse files
committed
Change time for capcha
1 parent 3ff5f66 commit 4516c98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/login.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def login(page: Page, url, browser) -> bool:
4949
# Wait for iframe to be available
5050
iframe_locator = page.frame_locator("iframe[title='Widget containing checkbox for hCaptcha security challenge']")
5151
checkbox = iframe_locator.locator("#checkbox")
52-
checkbox.wait_for(timeout=10000) # Wait up to 10 seconds
52+
checkbox.wait_for(timeout=40000) # Wait up to 40 seconds
5353
checkbox.click()
5454
logging.info("Clicked Cloudflare checkbox")
5555
page.wait_for_timeout(2000) # Wait for animation

0 commit comments

Comments
 (0)