diff --git a/src/JupyterLibrary/clients/jupyterlab/Selectors.resource b/src/JupyterLibrary/clients/jupyterlab/Selectors.resource index 006458ce..5d23f4de 100644 --- a/src/JupyterLibrary/clients/jupyterlab/Selectors.resource +++ b/src/JupyterLibrary/clients/jupyterlab/Selectors.resource @@ -29,8 +29,8 @@ ${JLAB XP CARD} //div[contains(@class, 'jp-LauncherCard' ${JLAB XP DOCK} //div[@id='jp-main-dock-panel'] ${JLAB XP MENU ITEM} //li[contains(@class, 'p-Menu-item')] ${JLAB XP MENU ITEM LABEL} //div[contains(@class, 'p-Menu-itemLabel')] -${JLAB XP MENU ITEM ENABLED} ${JLAB XP MENU ITEM}\[not(contains(@class,'p-mod-disabled'))] -${JLAB XP MENU ITEM LABEL ENABLED} ${JLAB XP MENU ITEM ENABLED}/div[contains(@class, 'p-Menu-itemLabel')] +${JLAB XP MENU ITEM VISIBLE} ${JLAB XP MENU ITEM}\[not(contains(@class,'p-mod-hidden'))] +${JLAB XP MENU ITEM LABEL VISIBLE} ${JLAB XP MENU ITEM VISIBLE}/div[contains(@class, 'p-Menu-itemLabel')] ${JLAB XP MENU LABEL} //div[contains(@class, 'p-MenuBar-itemLabel')] ${JLAB XP TOP} //div[@id='jp-top-panel'] ${JLAB XP MAIN AREA FRAG} [contains(@class, 'jp-MainAreaWidget')] diff --git a/src/JupyterLibrary/clients/jupyterlab/Shell.resource b/src/JupyterLibrary/clients/jupyterlab/Shell.resource index 8b9488f5..a11f6a99 100644 --- a/src/JupyterLibrary/clients/jupyterlab/Shell.resource +++ b/src/JupyterLibrary/clients/jupyterlab/Shell.resource @@ -46,7 +46,7 @@ Click JupyterLab Menu Click JupyterLab Menu Item [Documentation] Click a currently-visible JupyterLab menu item by ``label``. [Arguments] ${label} - ${item} = Set Variable ${JLAB XP MENU ITEM LABEL ENABLED}\[text() = '${label}'] + ${item} = Set Variable ${JLAB XP MENU ITEM LABEL VISIBLE}\[text() = '${label}'] Wait Until Page Contains Element ${item} Mouse Over ${item} Click Element ${item}