Skip to content

Commit f401fda

Browse files
committed
convenience keyword for nested menus
1 parent b0f846e commit f401fda

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

atest/acceptance/10_lab/00_shell.robot

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ Open JupyterLab
1010

1111
Get Help
1212
Open JupyterLab
13-
Click JupyterLab Menu Help
14-
Click JupyterLab Menu Item About JupyterLab
13+
Open With JupyterLab Menu Help About JupyterLab
1514
Capture Element Screenshot css:.jp-Dialog-content ${OUTPUT_DIR}${/}about.png
1615
Click Element css:${JLAB CSS ACCEPT}
1716

src/JupyterLibrary/resources/jupyterlab/Shell.robot

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ Click JupyterLab Menu Item
3333
Mouse Over ${item}
3434
Click Element ${item}
3535

36+
Open With JupyterLab Menu
37+
[Arguments] ${menu_label} @{submenu_labels}
38+
Click JupyterLab Menu ${menu_label}
39+
:FOR ${item_label} IN @{submenu_labels}
40+
\ Click JupyterLab Menu Item ${item_label}
41+
3642
Maybe Accept a Prompt
3743
${accept} = Get WebElements css:${JLAB CSS ACCEPT}
3844
Run Keyword If ${accept} Click Element ${accept[0]}

0 commit comments

Comments
 (0)