fix: HOWOGE scroll down and click checkboxes before filling form
This commit is contained in:
parent
d03740ca20
commit
7cf713d567
1 changed files with 3 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue