-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
keywords for working with multiple open notebook tabs #47
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,3 +41,16 @@ Screenshot Each Output Of Active JupyterLab Document | |
Screenshot Each Output Of Active JupyterLab Cell ${prefix}_cell_${i} | ||
Screenshot Markdown Of Active JupyterLab Cell ${prefix}_cell_${i} | ||
END | ||
|
||
Wait Until JupyterLab Code Cell Is Idle | ||
[Documentation] Waits until the given cell in a specific JL tab no longer has an active prompt "[*]:". | ||
... The cell index starts from 1 and you must count empty and markdown cells too. | ||
[Arguments] ${tab_id_to_wait} ${cell_n} ${timeout}=30 | ||
Wait Until Element Is Not Visible xpath=//div[@aria-labelledby="${tab_id_to_wait}"]/${JLAB XP NOTEBOOK CONTENT}/div[${cell_n}]/${JLAB XP CELL INPUT STATUS ICON} ${timeout} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. for consistency, first argument should problaby start with |
||
|
||
Get A JupyterLab Code Cell Output In a Given Tab | ||
[Documentation] It returns the output of a given cell in a specific JL tab. | ||
... The cell index starts from 1 and you must count empty and markdown cells too. | ||
[Arguments] ${tab_id_to_read} ${cell_n} | ||
${output_children}= Get Web Elements xpath=//div[@aria-labelledby="${tab_id_to_read}"]/${JLAB XP NOTEBOOK CONTENT}/div[${cell_n}]/${JLAB XP CELL OUTPUT GENERIC} | ||
[Return] ${output_children} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,5 +40,16 @@ ${JLAB XP NB TOOLBAR} //div${JLAB XP NB TOOLBAR FRAG} | |
${JLAB XP BUSY KERNEL} //*[local-name() = 'div' and contains(@class, 'jp-FilledCircleIcon' or (local-name() = 'svg' and contains(@data-icon, 'ui-components:circle-filled')))] | ||
# dock panel | ||
${JLAB XP DOCK PANEL} //*[@id = 'jp-main-dock-panel'] | ||
${JLAB XP DOCK TAB} ${JLAB XP DOCK PANEL}//ul[contains(@class, 'p-TabBar-content')]/li[contains(@class, 'p-TabBar-tab')] | ||
${JLAB XP DOCK TABBAR CONTENT} ${JLAB XP DOCK PANEL}//ul[contains(@class, 'p-TabBar-content')] | ||
${JLAB XP DOCK TAB} ${JLAB XP DOCK TABBAR CONTENT}/li[contains(@class, 'p-TabBar-tab')] | ||
${JLAB XP DOCK TAB LABEL} ${JLAB XP DOCK TAB}/div[contains(@class, 'p-TabBar-tabLabel')] | ||
${JLAB XP DOCK TAB SELECTED} ${JLAB XP DOCK TABBAR CONTENT}/li[contains(@class,"lm-mod-current p-mod-current")] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. please just use |
||
# notebook | ||
${JLAB XP CELL INPUT AREA} div[contains(@class, "p-Cell-inputWrapper")]/div[contains(@class,"jp-Cell-inputArea")] | ||
${JLAB XP CELL INPUT STATUS ICON} ${JLAB XP CELL INPUT AREA}/div[contains(@class,"jp-InputArea-prompt") and (.="[*]:")] | ||
${JLAB XP CELL OUTPUT AREA} div[contains(@class, "jp-Cell-outputWrapper")]/div[contains(@class,"jp-Cell-outputArea")] | ||
${JLAB XP CELL OUTPUT TEXT} ${JLAB XP CELL OUTPUT AREA}//div[contains(@class,"jp-RenderedText")] | ||
${JLAB XP CELL OUTPUT GENERIC} ${JLAB XP CELL OUTPUT AREA}//div[contains(@class,"jp-Rendered")] | ||
${JLAB XP NOTEBOOK CONTENT} div[contains(@class, "jp-NotebookPanel-notebook")] | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please include the unit, e.g
30s
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some default of
cell_n
(e.g. the last) might be helpful.