Skip to content

Commit 8baf3bf

Browse files
committed
Add suffix to menu items locator
Signed-off-by: Luca Giorgi <[email protected]>
1 parent 59b1d94 commit 8baf3bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/JupyterLibrary/clients/jupyterlab/Shell.robot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Click JupyterLab Menu
4242
Click JupyterLab Menu Item
4343
[Arguments] ${label}
4444
[Documentation] Click a currently-visible JupyterLab menu item by ``label``.
45-
${item} = Set Variable ${JLAB XP MENU ITEM LABEL}\[text() = '${label}']
45+
${item} = Set Variable ${JLAB XP MENU ITEM LABEL}\[text() = '${label}']/..[not(contains(@class,'p-mod-disabled'))]
4646
Wait Until Page Contains Element ${item}
4747
Mouse Over ${item}
4848
Click Element ${item}

0 commit comments

Comments
 (0)