Skip to content

Commit ccea16c

Browse files
committed
Corrections to open bookmark function
1 parent f11baf3 commit ccea16c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

modules/browser_object_navigation.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -546,15 +546,16 @@ def verify_edit_bookmark_panel_not_visible_after_navigation(self) -> BasePage:
546546
self.panel_ui.element_not_visible("show-editor-when-saving-checkbox")
547547
return self
548548

549+
@BasePage.context_chrome
549550
def open_bookmark_from_toolbar(self, bookmark_title: str) -> BasePage:
550551
"""
551-
Right-clicks bookmark and opens it in a new private window via context menu
552+
Clicks bookmark to open it in the current tab
552553
553554
Argument:
554555
bookmark_title: The title of the bookmark to open
555556
"""
556557
self.panel_ui.element_clickable("bookmark-by-title", labels=[bookmark_title])
557-
self.panel_ui.context_click("bookmark-by-title", labels=[bookmark_title])
558+
self.panel_ui.click_on("bookmark-by-title", labels=[bookmark_title])
558559
return self
559560

560561
@BasePage.context_chrome

0 commit comments

Comments
 (0)