MCPcopy Create free account
hub / github.com/Vinyzu/recognizer / test_sync_challenger

Function test_sync_challenger

tests/test_playwright_sync.py:10–19  ·  view source on GitHub ↗
(sync_page: Page)

Source from the content-addressed store, hash-verified

8
9
10def test_sync_challenger(sync_page: Page):
11 challenger = SyncChallenger(sync_page, click_timeout=1000)
12 # For slow Pytest Loading
13 challenger.detector.detection_models.check_loaded()
14
15 sync_page.goto("https://recaptcha-demo.appspot.com/recaptcha-v2-checkbox-explicit.php")
16
17 with suppress(RecursionError):
18 res = challenger.solve_recaptcha()
19 assert res

Callers

nothing calls this directly

Calls 3

solve_recaptchaMethod · 0.95
SyncChallengerClass · 0.90
check_loadedMethod · 0.80

Tested by

no test coverage detected