File tree Expand file tree Collapse file tree 1 file changed +10
-14
lines changed
tests/bookmarks_and_history Expand file tree Collapse file tree 1 file changed +10
-14
lines changed Original file line number Diff line number Diff line change @@ -15,20 +15,16 @@ def test_case():
1515
1616def test_opened_website_in_private_window_not_captured_in_history_list (driver : Firefox ):
1717 """
18- C118806 - Verify that opened websites in a New Private Window will not be displayed in the Hamburger submenu history
18+ C118806 - Verify that opened websites in a New Private Window will not be displayed in the Hamburger History submenu
1919 """
20+ # Instantiate objects
21+ panel = PanelUi (driver )
22+ page = GenericPage (driver , url = YOUTUBE_URL )
2023
21- panel_ui = PanelUi (driver )
22- panel_ui .open_and_switch_to_new_window ("private" )
24+ # Open the desired webpage in a new Private window
25+ panel .open_and_switch_to_new_window ("private" )
26+ page .open ()
2327
24- GenericPage (driver , url = YOUTUBE_URL ).open ()
25-
26- panel_ui .open_history_menu ()
27-
28- with driver .context (driver .CONTEXT_CHROME ):
29- empty_label = panel_ui .get_element ("recent-history-content" ).get_attribute (
30- "value"
31- )
32- assert empty_label == "(Empty)" , (
33- f"Expected history to be empty, but found '{ empty_label } '"
34- )
28+ # Verify that the webpage opened in Private window is not listed in History
29+ panel .open_history_menu ()
30+ panel .confirm_history_clear ()
You can’t perform that action at this time.
0 commit comments