Skip to content

Commit 5f0b662

Browse files
committed
New attempt
1 parent dc858db commit 5f0b662

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

modules/browser_object_panel_ui.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,7 @@ def open_history_menu(self) -> BasePage:
166166
@BasePage.context_chrome
167167
def open_clear_history_dialog(self) -> BasePage:
168168
"""Opens the clear history dialog and switches to iframe context"""
169-
self.open_history_menu()
170-
self.element_visible("clear-recent-history")
171-
self.element_clickable("clear-recent-history")
169+
172170
self.click_on("clear-recent-history")
173171

174172
self.element_visible("iframe")

tests/bookmarks_and_history/test_clear_all_history.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ def test_clear_all_history(driver: Firefox):
2424
page = GenericPage(driver)
2525
panel = PanelUi(driver)
2626

27-
# Open Clear History menu
27+
# Open Clear History dialog
28+
panel.open_history_menu()
2829
panel.open_clear_history_dialog()
2930

3031
# Select the option to clear all the history

0 commit comments

Comments
 (0)