You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
82 lines
2.0 KiB
82 lines
2.0 KiB
{ |
|
"cells": [ |
|
{ |
|
"cell_type": "markdown", |
|
"id": "db42eb08", |
|
"metadata": {}, |
|
"source": [ |
|
"# Robot Framework\n", |
|
"\n", |
|
"[docs](https://robocorp.com/docs)" |
|
] |
|
}, |
|
{ |
|
"cell_type": "raw", |
|
"id": "d2f5ca23-5eed-4eb6-9c1b-2152b08009a5", |
|
"metadata": {}, |
|
"source": [ |
|
"*** Settings ***\n", |
|
"Documentation Simple example using SeleniumLibrary.\n", |
|
"Library SeleniumLibrary\n", |
|
"\n", |
|
"*** Variables ***\n", |
|
"${LOGIN URL} http://localhost:7272\n", |
|
"${BROWSER} Chrome\n", |
|
"\n", |
|
"*** Test Cases ***\n", |
|
"Valid Login\n", |
|
" Open Browser To Login Page\n", |
|
" Input Username demo\n", |
|
" Input Password mode\n", |
|
" Submit Credentials\n", |
|
" Welcome Page Should Be Open\n", |
|
" [Teardown] Close Browser\n", |
|
"\n", |
|
"*** Keywords ***\n", |
|
"Open Browser To Login Page\n", |
|
" Open Browser ${LOGIN URL} ${BROWSER}\n", |
|
" Title Should Be Login Page\n", |
|
"\n", |
|
"Input Username\n", |
|
" [Arguments] ${username}\n", |
|
" Input Text username_field ${username}\n", |
|
"\n", |
|
"Input Password\n", |
|
" [Arguments] ${password}\n", |
|
" Input Text password_field ${password}\n", |
|
"\n", |
|
"Submit Credentials\n", |
|
" Click Button login_button\n", |
|
"\n", |
|
"Welcome Page Should Be Open\n", |
|
" Title Should Be Welcome Page" |
|
] |
|
} |
|
], |
|
"metadata": { |
|
"kernelspec": { |
|
"display_name": "Python 3.10.4 64-bit", |
|
"language": "python", |
|
"name": "python3" |
|
}, |
|
"language_info": { |
|
"codemirror_mode": { |
|
"name": "ipython", |
|
"version": 3 |
|
}, |
|
"file_extension": ".py", |
|
"mimetype": "text/x-python", |
|
"name": "python", |
|
"nbconvert_exporter": "python", |
|
"pygments_lexer": "ipython3", |
|
"version": "3.10.4" |
|
}, |
|
"vscode": { |
|
"interpreter": { |
|
"hash": "31f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6" |
|
} |
|
} |
|
}, |
|
"nbformat": 4, |
|
"nbformat_minor": 5 |
|
}
|
|
|