This repository contains 12 powerful automation test suites built using Robot Framework and SeleniumLibrary 🧩Each file demonstrates an important web automation concept — from browser control, element interactions, and alerts, to advanced data-driven testing using Excel.
This project serves as a complete learning and practice suite for mastering Robot Framework automation using Python and Selenium.It includes both beginner and advanced test cases such as:
-
🌐 Browser control & screenshot capture
-
⌨️ Input box automation & validation
-
✅ Radio buttons & checkbox handling
-
🔽 Dropdowns, list boxes, and select menus
-
⏱️ Speed, timeout, and wait handling
-
🪟 Window & alert management
-
🖱️ Scrolling, right/double click & drag-drop actions
-
📊 Table validation & data assertions
-
📑 Keyword-driven login tests
| 🧰 Component | 💡 Description |
|---|---|
| Language | |
| Framework | |
| Library | |
| Browser Drivers | |
| Data Source | |
| Reports |
📦 Directory: Automation-1
Follow these steps to set up the environment and execute your Robot Framework automation tests.
Before you begin, ensure that you have the following installed:
| 🧰 Tool | ✅ Check Command | ⚡ Required Version | 🏷️ Badge |
|---|---|---|---|
| Python | python --version |
≥ 3.8 | |
| pip | pip --version |
Latest |
Run the following commands to install all necessary dependencies 👇
python --version
pip --versionpython -m venv robotLearn1
robotLearn1\Scripts\activatepip install selenium
pip install robotframework
pip install robotframework-seleniumlibrary
pip install webdriver-managerpip install robotframework-datadriver
pip install -U robotframework-datadriver[XLS]pip show robotframework
pip listInstall the following extension from the VS Code Marketplace:
Extension:
Robot Framework Language Server
This provides syntax highlighting, autocomplete, and debugging support for Robot Framework.
Run your .robot test file using the robot command:
robot Automation-1/Test.robotThis executes the Test.robot file located inside the Automation-1 directory.
After execution, the following files are automatically generated in the same folder:
| 📄 File | 💡 Description | 🏷️ Badge |
|---|---|---|
| log.html | Detailed step-by-step execution log. | |
| report.html | Summary report of all test cases. | |
| output.xml | Machine-readable output data. |
📂 Generated Location: Automation-1
🧪 Test File 📝 Description
Code 1 :⇒ Launches browsers (Chrome & Firefox), captures screenshots, and closes them.
Code 2 :⇒ Automates Google & Flipkart — entering text, clicking buttons, and validating input fields.
Code 3 :⇒ Demonstrates selection/unselection of radio buttons and checkboxes.
Code 4 :⇒ Handles dropdown & list box selections via label, index, and value.
Code 5 :⇒ Tests Selenium speeds, explicit timeouts, and implicit waits.
Code 6 :⇒ Handles multiple browser tabs/windows and JavaScript alert popups.
Code 7 :⇒ Demonstrates browser navigation and captures screenshots of elements/pages.
Code 8 :⇒ Covers webpage scrolling, right-click, double-click, and drag-drop actions.
Code 9 :⇒ Uses argument-based reusable keywords to launch sites and retrieve titles dynamically.
Code 10 :⇒ Validates table structure, counts rows/columns, and asserts cell data.
Code 11 :⇒ Implements keyword-driven login tests with valid/invalid credentials using Suite Setup/Teardown.
Code 12 :⇒ Implements Excel data-driven login tests using the DataDriver library.
-
🧩 Test Cases & Custom Keywords
-
⚙️ Suite Setup / Teardown
-
🧾 Test Templates
-
💬 Variable usage (${url}, ${browser} etc.)
-
📦 External Resource Files
-
🔁 Argument & Return Handling
-
🧮 Conditional Execution (Run Keyword If)
-
📸 Screenshot Capture
-
📈 Excel-based Data-Driven Testing
📷 Screenshots Generated:
-
TestCaseScrenShot_1.png
-
Valid_Login_Pic.png
-
DatePicker_Element.png
-
DoubleClickCheck.png
📊 Reports Generated:
-
✅ report.html — Pass/Fail Summary
-
🔍 log.html — Step-by-step Execution Logs
-
⚙️ output.xml — Raw Output File
🧪 Purpose: Stores execution results for the first automation test suite including reports and logs.
💡 Tip: After every test run, Robot Framework automatically generates the
report.html,log.html, andoutput.xmlfiles inside the test folder.
-
🧠 resources.robot → Contains reusable keywords such as browser opening, login, logout, and validation.
-
📊 LoginData.xlsx → Holds username, password, and test type combinations for Excel-based data-driven login validation.
✅ All tests automatically open browsers, perform actions, validate outputs, and close sessions.
📸 Screenshots are captured for verification steps.
📄 Reports (log.html, report.html) provide detailed insights.
📊 Excel-driven tests dynamically iterate through multiple login datasets.
🚀 “Automate smartly. Validate effectively. Report beautifully.”
✨ Built with Passion, Tested with Precision, Logged with Confidence ✨