Skip to content

Commit 34579ae

Browse files
Update page_object_autofill.py Fix missed issues from review
1 parent 8b07b2e commit 34579ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/page_object_autofill.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,7 @@ def verify_autofill_cc_data_on_hover(
307307
# If parsing fails, raise ValueError.
308308
raise ValueError("Given preview data is incomplete.")
309309
container_data = container.get("fillMessageData", {}).get("profile", {})
310+
assert container_data, "No preview data available."
310311
assert all(field in container_data.keys() for field in self.fields), (
311312
"Not all fields present in preview data."
312313
)
@@ -672,7 +673,6 @@ def verify_autofill_data_on_hover(
672673

673674
# get preview data from hovering through the chrome context
674675
element = autofill_popup.get_element("address-preview-form-container")
675-
print(element.get_attribute("innerHTML"))
676676
# get every span element that is a child of the form and is not empty
677677
children = [
678678
x.get_attribute("innerHTML")

0 commit comments

Comments
 (0)