File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ pytest = "<8.4"
1111pytest-httpserver = " 1.0.12"
1212requests = " <3.0"
1313pytest-xdist = " 3.6.1"
14- pytest-html = " 4.1.1"
1514pypom = " 2.2.4"
1615taskcluster-taskgraph = " ==9.0.0"
1716jsonpath-ng = " 1.6.1"
@@ -25,6 +24,7 @@ google-auth = "2.32.0"
2524psutil = " <6.1"
2625pytest-json-report = " ==1.5.0"
2726beautifulsoup4 = " 4.12.3"
27+ pytest-html = " *"
2828
2929[dev-packages ]
3030werkzeug = " ==3.0.3"
Original file line number Diff line number Diff line change @@ -597,10 +597,17 @@ def open_bookmark_in_new_tab_via_context_menu(
597597 Argument:
598598 bookmark_title: The title of the bookmark to open
599599 """
600- # Right-click the bookmark and open it in new tabe via context menu item
600+ # Right-click the bookmark to make the menu appear
601601 self .panel_ui .element_clickable ("bookmark-by-title" , labels = [bookmark_title ])
602602 self .panel_ui .context_click ("bookmark-by-title" , labels = [bookmark_title ])
603- self .context_menu .click_on ("context-menu-toolbar-open-in-new-tab" )
603+
604+ # Find the menu item we want to click
605+ # We use .fetch() here to get the element without clicking it yet
606+ menu_item = self .context_menu .fetch ("context-menu-toolbar-open-in-new-tab" )
607+
608+ # Use ActionChains to perform a more reliable click
609+ actions = ActionChains (self .driver )
610+ actions .move_to_element (menu_item ).click ().perform ()
604611
605612 return self
606613
You can’t perform that action at this time.
0 commit comments