Skip to content

Commit e2d3cb0

Browse files
authored
Merge pull request #52 from lugi0/menu-locator
Update locator to use `p-mod-hidden` class
2 parents 3ef47f7 + bc1e462 commit e2d3cb0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/JupyterLibrary/clients/jupyterlab/Selectors.resource

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ ${JLAB XP CARD} //div[contains(@class, 'jp-LauncherCard'
2929
${JLAB XP DOCK} //div[@id='jp-main-dock-panel']
3030
${JLAB XP MENU ITEM} //li[contains(@class, 'p-Menu-item')]
3131
${JLAB XP MENU ITEM LABEL} //div[contains(@class, 'p-Menu-itemLabel')]
32-
${JLAB XP MENU ITEM ENABLED} ${JLAB XP MENU ITEM}\[not(contains(@class,'p-mod-disabled'))]
33-
${JLAB XP MENU ITEM LABEL ENABLED} ${JLAB XP MENU ITEM ENABLED}/div[contains(@class, 'p-Menu-itemLabel')]
32+
${JLAB XP MENU ITEM VISIBLE} ${JLAB XP MENU ITEM}\[not(contains(@class,'p-mod-hidden'))]
33+
${JLAB XP MENU ITEM LABEL VISIBLE} ${JLAB XP MENU ITEM VISIBLE}/div[contains(@class, 'p-Menu-itemLabel')]
3434
${JLAB XP MENU LABEL} //div[contains(@class, 'p-MenuBar-itemLabel')]
3535
${JLAB XP TOP} //div[@id='jp-top-panel']
3636
${JLAB XP MAIN AREA FRAG} [contains(@class, 'jp-MainAreaWidget')]

src/JupyterLibrary/clients/jupyterlab/Shell.resource

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Click JupyterLab Menu
4646
Click JupyterLab Menu Item
4747
[Documentation] Click a currently-visible JupyterLab menu item by ``label``.
4848
[Arguments] ${label}
49-
${item} = Set Variable ${JLAB XP MENU ITEM LABEL ENABLED}\[text() = '${label}']
49+
${item} = Set Variable ${JLAB XP MENU ITEM LABEL VISIBLE}\[text() = '${label}']
5050
Wait Until Page Contains Element ${item}
5151
Mouse Over ${item}
5252
Click Element ${item}

0 commit comments

Comments
 (0)