*** Settings ***
Library SeleniumLibrary
Library SeleniumScreenshots
Suite teardown Close all browsers
*** Keywords ***
Open url
[Arguments] ${url}
Open browser ${url} browser=headlessfirefox alias=singleton
Set window size 800 900
Box(children=(Button(description='Open url', style=ButtonStyle()), Label(value='url='), Text(value='')), layou…
Output()
*** Test Cases ***
Show the new Robot Framework logo
Open url https://twitter.com/robotframework
Wait until page contains Robot Framework
Sleep 1s # wait for async image to load :-o
Capture and crop page screenshot robotframework.png
... css=[href="/robotframework/photo"]
*** Test Cases ***
Show Plone logo
Open url https://plone.org
Page should contain element css=.navbar-brand
Capture and crop page screenshot plone.png
... css=.navbar-brand
*** Test Cases ***
Demonstrate failing test
Open url https://plone.org
Page should contain Hello World!
============================================================================== Jupyter ============================================================================== Demonstrate failing test | FAIL | Page should have contained text 'Hello World!' but did not. ------------------------------------------------------------------------------ Jupyter | FAIL | 1 test, 0 passed, 1 failed ============================================================================== Output: /run/user/1000/tmprt350m3p/output.xml