Skip to content

Commit 6bfca23

Browse files
committed
Use the correct method
1 parent 53efb6d commit 6bfca23

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

modules/browser_object_panel_ui.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,8 @@ def open_history_menu(self) -> BasePage:
165165

166166
@BasePage.context_chrome
167167
def open_clear_history_dialog(self) -> BasePage:
168-
"""Opens the clear history dialog and switches to iframe context"""
169-
170-
self.get_element("clear-recent-history").click()
168+
"""Opens the clear history dialog and switches to iframe context, assuming the history panel is opened"""
169+
self.click_on("clear-recent-history")
171170

172171
self.element_visible("iframe")
173172
iframe = self.get_element("iframe")

tests/bookmarks_and_history/test_clear_recent_history_displayed.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ def test_clear_recent_history_displayed(driver: Firefox):
1818
panel = PanelUi(driver)
1919

2020
# Open Clear recent history dialog
21-
panel.open()
21+
panel.open_history_menu()
2222
panel.open_clear_history_dialog()

0 commit comments

Comments
 (0)