chore: реализация детектора обязана установить stage

типо сигнал, что детект отработал корректно
This commit is contained in:
protokey committed 2026-09-22 13:48:34 +04:00
1 parent 23f8ee4360
commit a0170c9754
2 files changed
+3 -1

No files matched your search

+1
View File
@@ -114,6 +114,7 @@ class ReCaptchaDetector(Detector):
iframe = page.frame_locator("iframe[title='reCAPTCHA']")
# ожидаем когда будет загружен чекбокс
info.stage = Stage.INTERSTITIAL
checkbox = iframe.locator(checkbox_selector)
try:
await checkbox.wait_for(state="attached")