Skip to content

Commit 579e7bf

Browse files
committed
test 1976523 passed locally
1 parent c56fdd2 commit 579e7bf

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

Pipfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ pytest = "<8.4"
1111
pytest-httpserver = "1.0.12"
1212
requests = "<3.0"
1313
pytest-xdist = "3.6.1"
14-
pytest-html = "4.1.1"
1514
pypom = "2.2.4"
1615
taskcluster-taskgraph = "==9.0.0"
1716
jsonpath-ng = "1.6.1"
@@ -25,6 +24,7 @@ google-auth = "2.32.0"
2524
psutil = "<6.1"
2625
pytest-json-report = "==1.5.0"
2726
beautifulsoup4 = "4.12.3"
27+
pytest-html = "*"
2828

2929
[dev-packages]
3030
werkzeug = "==3.0.3"

modules/browser_object_navigation.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)