File tree Expand file tree Collapse file tree 2 files changed +33
-0
lines changed
tests/bookmarks_and_history Expand file tree Collapse file tree 2 files changed +33
-0
lines changed Original file line number Diff line number Diff line change 155
155
"selectorData" : " toolbarbutton.bookmark-item[label*='{title}']" ,
156
156
"strategy" : " css" ,
157
157
"groups" : []
158
+ },
159
+
160
+ "bookmark-current-tab" : {
161
+ "selectorData" : " panelMenuBookmarkThisPage" ,
162
+ "strategy" : " id" ,
163
+ "groups" : []
158
164
}
165
+
159
166
}
Original file line number Diff line number Diff line change
1
+ from selenium .webdriver import Firefox
2
+
3
+ from modules .browser_object_navigation import Navigation
4
+ from modules .browser_object_panel_ui import PanelUi
5
+
6
+ URL_TO_BOOKMARK = "https://www.mozilla.org/"
7
+
8
+
9
+ def test_bookmark_via_bookmark_menu (driver : Firefox ):
10
+ """
11
+ C2084489: Verify that the user can Bookmark a page from the Bookmarks menu
12
+ """
13
+ # instantiate object
14
+ nav = Navigation (driver )
15
+ panel = PanelUi (driver )
16
+
17
+ # Bookmark the given website via bookmarks menu
18
+ driver .get (URL_TO_BOOKMARK )
19
+ panel .open_bookmarks_menu ()
20
+ with driver .context (driver .CONTEXT_CHROME ):
21
+ panel .get_element ("bookmark-current-tab" ).click ()
22
+ nav .get_element ("save-bookmark-button" ).click ()
23
+
24
+ # Verify that the bookmark is displayed in bookmarks menu
25
+ panel .open_bookmarks_menu ()
26
+ panel .element_visible ("bookmark-by-title" , labels = ["Internet for people" ])
You can’t perform that action at this time.
0 commit comments