From 7cf713d5671d68c733122dcd1ed137dfd81c279b Mon Sep 17 00:00:00 2001 From: Aron Date: Tue, 9 Dec 2025 12:00:40 +0100 Subject: [PATCH] fix: HOWOGE scroll down and click checkboxes before filling form --- monitor.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/monitor.py b/monitor.py index 4b52b3d..64d6a9f 100644 --- a/monitor.py +++ b/monitor.py @@ -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)