File tree Expand file tree Collapse file tree 3 files changed +2
-17
lines changed
tests/acceptance/RobotLab Expand file tree Collapse file tree 3 files changed +2
-17
lines changed Original file line number Diff line number Diff line change @@ -10,28 +10,13 @@ Chrome
10
10
Firefox
11
11
headlessfirefox
12
12
13
- *** Keywords ***
14
- Run Selenium keyword and return status
15
- [Documentation]
16
- ... Run Selenium keyword (optionally with arguments)
17
- ... and return status without screenshots on failure
18
- [Arguments] ${keyword } @{arguments }
19
- ${tmp } = Register keyword to run on failure No operation
20
- ${status } = Run keyword and return status ${keyword } @{arguments }
21
- Register keyword to run on failure ${tmp }
22
- [Return] ${status }
23
-
24
13
Can RobotLab make an IPython Notebook?
25
14
[Arguments] ${browser }
26
15
[Documentation] Try a basic IPython Notebook
27
16
Set Tags browser:${browser }
28
17
${prefix } = Set Variable ipython_${browser } _
29
18
Open JupyterLab browser=${browser }
30
- ${is_launcher } = Run Selenium keyword and return status
31
- ... Page should contain element
32
- ... xpath://div[@class='jp-LauncherCard']
33
- Run keyword if not ${is_launcher }
34
- ... Execute JupyterLab Command New Launcher
19
+ Execute JupyterLab Command Close All
35
20
Launch a new JupyterLab Document Python 3 Notebook
36
21
Capture Page Screenshot ${prefix } _01_notebook.png
37
22
Add and Run JupyterLab Code Cell print("Hello" + " World")
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ Can RobotLab make a Robot Notebook?
17
17
Set Tags browser:${browser }
18
18
${prefix } = Set Variable robot_${browser } _
19
19
Open JupyterLab browser=${browser }
20
+ Execute JupyterLab Command Close All
20
21
Launch a new JupyterLab Document Robot Framework Notebook
21
22
Capture Page Screenshot ${prefix } _01_notebook.png
22
23
Add and Run JupyterLab Code Cell | *Test Case* |${\n } | Hello |${\n } | | Log | Hello World
Original file line number Diff line number Diff line change @@ -3,6 +3,5 @@ Suite Setup Start New RobotLab Server
3
3
Suite Teardown Terminate All Jupyter Servers
4
4
Test Teardown Reset JupyterLab and Close
5
5
Force Tags ui:lab
6
- Library SeleniumLibrary
7
6
Library JupyterLibrary
8
7
Resource ../../resources/Launch.robot
You can’t perform that action at this time.
0 commit comments