This repository contains automation examples using the Robot Framework with SeleniumLibrary for interacting with components on The Internet Herokuapp. It demonstrates real-world automation scenarios including working with alerts, context menus, dynamic elements, login flows, and more.
robot-tests/
│
├── tests/ # Test case files (.robot)
├── resources/ # Page objects, keywords, and images
├── test_data/ # Input data or supporting files
├── results/ # Test execution reports and logs
├── .gitignore
└── README.md
You can download Python from python.org. Make sure to check "Add Python to PATH" during installation.
pip install robotframework
pip install robotframework-seleniumlibrary
Ensure Chrome is installed and download the corresponding ChromeDriver from: https://sites.google.com/chromium.org/driver/
Place the driver in a folder that's in your system PATH
.
Alternatively, you can use webdriver-manager
:
pip install webdriver-manager
- VS Code: Install the "Robot Framework Language Server" extension.
robot tests/
robot tests/test_login.robot
robot -d results tests/
Examples cover components such as:
- Add/Remove Elements
- Alerts & Modal Dialogs
- Context Menu
- Login & Error Handling
- Dynamic Controls
- File Uploads
- Frames & Windows
- JavaScript Alerts
- and more...
After running the tests, Robot Framework will generate:
report.html
– Summary of test executionlog.html
– Detailed logsoutput.xml
– Raw result data
All located inside the results/
directory.
- Page Object style keyword definitions are stored in
resources/
. - Common variables (e.g.,
${URL}
,${BROWSER}
,${TIMEOUT}
) are stored invariables.py
. - Browser runs in incognito mode by default with additional ChromeOptions.
All visual assets and test data are stored under resources/
and test_data/
directories.
Janesh Kodikara