Wir benötigen deine Telefonnummer für eventuelle Rückfragen: Bitte gib eine Telefonnummer an, um den Kauf abzuschließen.
Beginne bei der Adresseingabe mit der Straße:
Wir versenden nur innerhalb Österreichs.
\ No newline at end of file
diff --git a/l10n_CM/sites/mediamarkt/AT/mediamarkt_cc.html b/l10n_CM/sites/mediamarkt/AT/mediamarkt_cc.html
new file mode 100644
index 000000000..27b4cfddb
--- /dev/null
+++ b/l10n_CM/sites/mediamarkt/AT/mediamarkt_cc.html
@@ -0,0 +1 @@
+Payment Page
ID wechseln
Anzeige Ihrer bei Click to Pay gespeicherten Karten
\ No newline at end of file
diff --git a/l10n_CM/sites/zalando/IT/zalando_ad.html b/l10n_CM/sites/zalando/IT/zalando_ad.html
new file mode 100644
index 000000000..1ab6a9a05
--- /dev/null
+++ b/l10n_CM/sites/zalando/IT/zalando_ad.html
@@ -0,0 +1 @@
+Indirizzo
acquisto sicuro
Indirizzo di consegna
Aggiungi nuovo indirizzo
Max 30 caratteri: c/o, interno, nome sul citofono
PaeseItalia
\ No newline at end of file
diff --git a/l10n_CM/sites/zalando/IT/zalando_cc.html b/l10n_CM/sites/zalando/IT/zalando_cc.html
new file mode 100644
index 000000000..c8f5680de
--- /dev/null
+++ b/l10n_CM/sites/zalando/IT/zalando_cc.html
@@ -0,0 +1 @@
+Pagamento
\ No newline at end of file
diff --git a/modules/page_object_autofill.py b/modules/page_object_autofill.py
index 013233e43..cc11a2abf 100644
--- a/modules/page_object_autofill.py
+++ b/modules/page_object_autofill.py
@@ -510,6 +510,7 @@ def verify_autofill_data_on_hover(
is_present = any(
[value in val for val in autofill_data.__dict__.values()]
)
+
assert is_present, (
f"Mismatched data: {(field, value)} not in {autofill_data.__dict__.values()}."
)
diff --git a/modules/util.py b/modules/util.py
index 5d54054c9..59d2250e3 100644
--- a/modules/util.py
+++ b/modules/util.py
@@ -112,6 +112,19 @@ def __init__(self):
"Belgium": "België",
"Austria": "Österreich",
}
+ # Country code mapping for different regions
+ self.country_codes = {
+ "US": "1",
+ "CA": "1",
+ "FR": "33",
+ "DE": "49",
+ "GB": "44",
+ "IT": "39",
+ "PL": "48",
+ "ES": "34",
+ "BE": "32",
+ "AT": "43",
+ }
self.fake = None
self.locale = None
@@ -556,23 +569,18 @@ def normalize_regional_phone_numbers(self, phone: str, region: str) -> str:
str
The normalized phone number in the format .
"""
+ # Handle leading zero in local numbers before country code is removed
+ if region not in ["US", "CA"] and phone.startswith("0"):
+ # Remove the leading zero
+ phone = phone[1:]
- # Country code mapping for different regions
- country_codes = {
- "US": "1",
- "CA": "1",
- "FR": "33",
- "DE": "49",
- "GB": "44",
- "IT": "39",
- "PL": "48",
- "ES": "34",
- "BE": "32",
- "AT": "43",
- }
+ # Fix Austrian phone number duplication issue before processing
+ if region == "AT" and "4343" in phone:
+ # Remove the duplicated country code
+ phone = phone.replace("4343", "43")
# If phone is already normalized, return as it is
- expected_country_code = country_codes.get(region)
+ expected_country_code = self.country_codes.get(region)
if (
expected_country_code
and phone.isdigit()
@@ -581,17 +589,13 @@ def normalize_regional_phone_numbers(self, phone: str, region: str) -> str:
):
return phone
- # Fix Austrian duplicated country code before processing
- if region == "AT" and phone.startswith("+4343"):
- phone = "+43" + phone[5:] # Remove duplicated 43
-
# Sub out anything that matches this regex statement with an empty string to get rid of extensions in generated phone numbers
phone = re.sub(r"\s*(?:x|ext)\s*\d*$", "", phone, flags=re.IGNORECASE)
# Sub out anything that is not a digit with the empty string to ensure the phone number is formatted with no spaces or special characters
digits = re.sub(r"\D", "", phone)
# Determine country code
- country_code = country_codes.get(
+ country_code = self.country_codes.get(
region, "1"
) # Default to "1" (US/CA) if the region is unknown
# handle leading zeros
@@ -602,7 +606,7 @@ def normalize_regional_phone_numbers(self, phone: str, region: str) -> str:
# Remove country code from the local number
local_number = digits[len(country_code) :]
- # Handle leading zero in local numbers
+ # Handle leading zero in local numbers after country code is removed
if region not in ["US", "CA"] and local_number.startswith("0"):
# Remove the leading zero
local_number = local_number[1:]
@@ -613,7 +617,9 @@ def normalize_regional_phone_numbers(self, phone: str, region: str) -> str:
return ""
# Return formatted phone number with correct country code
- return f"{country_code}{local_number}"
+ result = f"{country_code}{local_number}"
+ logging.info(f"Phone normalization result: {phone} -> {result}")
+ return result
class BrowserActions: