@@ -435,7 +435,7 @@ def press_button_get_popup_dialog_iframe(self, button_label: str) -> WebElement:
435
435
"""
436
436
Returns the iframe object for the dialog panel in the popup after pressing some button that triggers a popup
437
437
"""
438
- self .get_element ("prefs-button" , labels = [button_label ]). click ( )
438
+ self .click_on ("prefs-button" , labels = [button_label ])
439
439
iframe = self .get_element ("browser-popup" )
440
440
return iframe
441
441
@@ -535,6 +535,7 @@ def get_clear_cookie_data_value(self) -> int | None:
535
535
The <memory used> value for no cookies is '0 bytes', otherwise values are '### MB', or '### KB'
536
536
"""
537
537
# Find the dialog option elements containing the checkbox label
538
+ self .element_exists ("clear-data-dialog-options" )
538
539
options = self .get_elements ("clear-data-dialog-options" )
539
540
540
541
# Extract the text from the label the second option
@@ -628,8 +629,8 @@ def choose_sidebar_option(self, option: str):
628
629
"""
629
630
Clicks the corresponding sidebar option from the about:addons page.
630
631
"""
631
- sleep ( 1 )
632
- self .get_element ("sidebar-options" , labels = [option ]). click ( )
632
+ self . element_exists ( "sidebar-options" , labels = [ option ] )
633
+ self .click_on ("sidebar-options" , labels = [option ])
633
634
634
635
def activate_theme (
635
636
self , nav : Navigation , theme_name : str , intended_color : str , perform_assert = True
0 commit comments