We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 156ee2b commit 3151c7bCopy full SHA for 3151c7b
modules/page_object_autofill.py
@@ -446,7 +446,10 @@ def verify_autofill_data_on_hover(
446
if field in self.preview_fields:
447
value = self.sanitize_preview_data(field, str(value))
448
# Check if this value exists in our CreditCardBase | AutofillAddressBase object
449
- assert value in autofill_data.__dict__.values(), (
+ is_present = any(
450
+ [value in val for val in autofill_data.__dict__.values()]
451
+ )
452
+ assert is_present, (
453
f"Mismatched data: {(field, value)} not in {autofill_data.__dict__.values()}."
454
)
455
0 commit comments