Skip to content

Commit

Permalink
Screenshot correct element when jupyter code fails
Browse files Browse the repository at this point in the history
Signed-off-by: lugi0 <[email protected]>
  • Loading branch information
lugi0 committed Oct 2, 2024
1 parent e5e534e commit 9453eeb
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@ Close JupyterLab Selected Tab
Maybe Close Popup

JupyterLab Code Cell Error Output Should Not Be Visible
Element Should Not Be Visible xpath://div[contains(@class,"jp-OutputArea-output") and @data-mime-type="application/vnd.jupyter.stderr"] A JupyterLab code cell output returned an error
Run Keyword And Continue On Failure

Check warning

Code scanning / Robocop

Trailing whitespace at the end of line Warning test

Trailing whitespace at the end of line
... SeleniumLibrary.Element Should Not Be Visible xpath://div[contains(@class,"jp-OutputArea-output") and @data-mime-type="application/vnd.jupyter.stderr"] A JupyterLab code cell output returned an error # robocop: disable
Capture Element Screenshot xpath://div[contains(@class,"jp-OutputArea-output") and @data-mime-type="application/vnd.jupyter.stderr"] # robocop: disable
Fail msg=A JupyterLab code cell output returned an error, see screenshot

Get JupyterLab Code Cell Error Text
${error_txt} = Get Text //div[contains(@class,"jp-OutputArea-output") and @data-mime-type="application/vnd.jupyter.stderr"]
Expand Down

0 comments on commit 9453eeb

Please sign in to comment.