fix gewobag css

This commit is contained in:
Aron Petau 2026-01-05 23:15:23 +01:00
parent c5445aa461
commit afb87d7d3c

View file

@ -215,9 +215,9 @@ class GewobagHandler(BaseHandler):
try: try:
mobile_phone = os.environ.get("FORM_PHONE", "") mobile_phone = os.environ.get("FORM_PHONE", "")
if mobile_phone: if mobile_phone:
# Wait for the field to appear # Wait for the field to appear - need to escape $$ in the selector
await iframe_page.wait_for_selector('#formly_17_input_$$_telephone_number_$$_0', timeout=5000, state='visible') await iframe_page.wait_for_selector('#formly_17_input_\\$\\$_telephone_number_\\$\\$_0', timeout=5000, state='visible')
mobile_input = await iframe_page.query_selector('#formly_17_input_$$_telephone_number_$$_0') mobile_input = await iframe_page.query_selector('#formly_17_input_\\$\\$_telephone_number_\\$\\$_0')
if mobile_input: if mobile_input:
await mobile_input.scroll_into_view_if_needed() await mobile_input.scroll_into_view_if_needed()
await mobile_input.fill(mobile_phone) await mobile_input.fill(mobile_phone)