Skip to content

Commit f92f950

Browse files
committed
add support for hover element
1 parent c7ebe87 commit f92f950

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

tests/form_autofill/test_address_autofill_attribute.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ def test_address_attribute_selection(driver: Firefox, country_code: str):
3232
# Get the first element from the autocomplete dropdown
3333
first_item = autofill_popup_panel.get_nth_element(1)
3434
actual_value = autofill_popup_panel.hover_over_element(
35-
first_item
35+
first_item,
36+
chrome=True
3637
).get_primary_value(first_item)
3738

3839
# Get the primary value (street address) from the first item in the dropdown and assert that the actual value

tests/form_autofill/test_name_autofill_attribute.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ def test_address_attribute_selection(driver: Firefox, country_code: str):
3232
# Get the first element from the autocomplete dropdown
3333
first_item = autofill_popup_panel.get_nth_element(1)
3434
actual_value = autofill_popup_panel.hover_over_element(
35-
first_item
35+
first_item,
36+
chrome=True
3637
).get_primary_value(first_item)
3738

3839
# Get the primary value (street address) from the first item in the dropdown and assert that the actual value

tests/form_autofill/test_telephone_autofill_attribute.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def test_telephone_attribute_autofill(driver: Firefox, country_code: str):
3333
first_item = autofill_popup_obj.get_nth_element("1")
3434

3535
# get relevant fields
36-
autofill_popup_obj.hover_over_element(first_item)
36+
autofill_popup_obj.hover_over_element(first_item, chrome=True)
3737
actual_value = autofill_popup_obj.get_primary_value(first_item)
3838
normalized_number = util.normalize_phone_number(actual_value)
3939
original_number = util.normalize_phone_number(autofill_sample_data.telephone)

0 commit comments

Comments
 (0)