|
2 | 2 |
|
3 | 3 | Welcome to the Selenium + Python Template Project! This repository provides a well-structured, scalable framework for test automation using Selenium WebDriver and Python. It's designed to help you get started quickly and maintain your test automation efforts efficiently. |
4 | 4 |
|
5 | | ---- |
6 | | - |
7 | 5 | ## 📋 Features |
8 | 6 |
|
9 | 7 | - **Modular Design**: Organized structure with reusable components like PageObjects and Test Data Factories. |
10 | 8 | - **Scalability**: Easy to extend for larger projects. |
11 | 9 | - **Integration-Ready**: Built-in support for integrating with APIs, CI/CD pipelines, and reporting tools. |
12 | 10 | - **Cross-Browser Support**: Pre-configured WebDriver factory for managing multiple browsers. |
13 | 11 |
|
14 | | ---- |
15 | | - |
16 | 12 | ## 🏗️ Project Structure |
17 | 13 |
|
18 | 14 | ```plaintext |
@@ -68,13 +64,15 @@ Place it in the drivers/ directory or update your system PATH. |
68 | 64 |
|
69 | 65 | ## ⚙️Configuration |
70 | 66 |
|
71 | | -Set environment variables: |
| 67 | +Set environment variables. Pay attention to `FRONTEND_URL` — it doesn't have any default value, it must be set |
| 68 | +before running tests. |
72 | 69 |
|
73 | | -| Variable | Description | Default | |
74 | | -|----------------------|-----------------------------------------------------------------------|--------------------| |
75 | | -| `SELENIUM_DRIVER_KIND` | Options: `remote`, `chrome`, `safari`, `firefox`. | `chrome` | |
76 | | -| `REMOTE_DRIVER_URL` | Used when `SELENIUM_DRIVER_KIND=remote`. | `http://localhost:3000` | |
77 | | -| `WINDOW_RESOLUTION` | Browser window resolution. Values are defined in `webdriver_factory.py` | `DESKTOP_1280X720` | |
| 70 | +| Variable | Description | Default | |
| 71 | +|----------------------|-------------------------------------------------------------------------|------------------------| |
| 72 | +| `FRONTEND_URL` | Base URL for web application under test. | | |
| 73 | +| `SELENIUM_DRIVER_KIND` | Options: `remote`, `chrome`, `safari`, `firefox`. | `chrome` | |
| 74 | +| `REMOTE_DRIVER_URL` | Used when `SELENIUM_DRIVER_KIND=remote`. | `http://localhost:3000` | |
| 75 | +| `WINDOW_RESOLUTION` | Browser window resolution. Values are defined in `webdriver_factory.py` | `DESKTOP_1280X720` | |
78 | 76 |
|
79 | 77 | ## 🧪 Running Tests |
80 | 78 | Run all tests using pytest: |
|
0 commit comments