-
Notifications
You must be signed in to change notification settings - Fork 9
Improve popup handling #53
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
base: main
Are you sure you want to change the base?
Changes from 3 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 |
|---|---|---|
|
|
@@ -61,9 +61,17 @@ Open With JupyterLab Menu | |
| END | ||
|
|
||
| Maybe Accept A JupyterLab Prompt | ||
| [Documentation] Click the accept button in a JupyterLab dialog (if one is open). | ||
| ${accept} = Get WebElements css:${JLAB CSS ACCEPT} | ||
| Run Keyword If ${accept} Click Element ${accept[0]} | ||
| [Documentation] Click the last button in a JupyterLab dialog (if one is open). | ||
| # Closing all tabs at once might create a pop-up for each tab. Let's get the | ||
lugi0 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| # Number of open tabs and try closing popups for each one. | ||
| ${jl_tabs} = Get WebElements xpath:${JL_TABBAR_NOT_SELECTED_XPATH} | ||
| ${len} = Get Length ${jl_tabs} | ||
| FOR ${index} IN RANGE 0 2+${len} | ||
| # Check if a popup exists | ||
| ${accept} = Get WebElements xpath:${JL_POPUP} | ||
| # Click the right most button of the popup | ||
| Run Keyword If ${accept} Click Element xpath:${JL_POPUP}/button[last()] | ||
|
||
| END | ||
|
|
||
| Get JupyterLab Dock Panel Tab | ||
| [Documentation] Get the ``n`` -th JupyterLab Dock Panel Tab with ``label`` as a ``WebElement``. | ||
|
|
||

Uh oh!
There was an error while loading. Please reload this page.