fix: HOWOGE scroll down and click checkboxes before filling form

This commit is contained in:
Aron Petau 2025-12-09 12:00:40 +01:00
parent d03740ca20
commit 7cf713d567

View file

@ -474,7 +474,7 @@ class ApplicationHandler:
'input[name*="zustimmung" i]',
'input[name*="accept" i]',
]
for selector in checkbox_selectors:
checkboxes = await page.query_selector_all(selector)
for checkbox in checkboxes:
@ -487,11 +487,11 @@ class ApplicationHandler:
await asyncio.sleep(0.3)
except Exception as e:
logger.debug(f"[HOWOGE] Checkbox click failed: {e}")
if checkboxes_clicked > 0:
logger.info(f"[HOWOGE] Clicked {checkboxes_clicked} checkboxes")
await asyncio.sleep(1)
# Screenshot after clicking checkboxes
screenshot_path = DATA_DIR / f"howoge_after_checkboxes_{listing['id']}.png"
await page.screenshot(path=str(screenshot_path), full_page=True)