Skip to content

Commit

Permalink
Merge pull request #52 from lugi0/menu-locator
Browse files Browse the repository at this point in the history
Update locator to use `p-mod-hidden` class
  • Loading branch information
bollwyvl authored Dec 24, 2021
2 parents 3ef47f7 + bc1e462 commit e2d3cb0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/JupyterLibrary/clients/jupyterlab/Selectors.resource
Original file line number Diff line number Diff line change
Expand Up @@ -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')]
Expand Down
2 changes: 1 addition & 1 deletion src/JupyterLibrary/clients/jupyterlab/Shell.resource
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit e2d3cb0

Please sign in to comment.