File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -579,17 +579,10 @@ def open_bookmark_in_new_tab_via_context_menu(
579579 Argument:
580580 bookmark_title: The title of the bookmark to open
581581 """
582- # Right-click the bookmark to make the menu appear
582+ # Right-click the bookmark and open it in new tabe via context menu item
583583 self .panel_ui .element_clickable ("bookmark-by-title" , labels = [bookmark_title ])
584584 self .panel_ui .context_click ("bookmark-by-title" , labels = [bookmark_title ])
585-
586- # Find the menu item we want to click
587- # We use .fetch() here to get the element without clicking it yet
588- menu_item = self .context_menu .fetch ("context-menu-toolbar-open-in-new-tab" )
589-
590- # Use ActionChains to perform a more reliable click
591- actions = ActionChains (self .driver )
592- actions .move_to_element (menu_item ).click ().perform ()
585+ self .context_menu .click_on ("context-menu-toolbar-open-in-new-tab" )
593586
594587 return self
595588
You can’t perform that action at this time.
0 commit comments