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)