Skip to content

Commit 675792a

Browse files
committed
Docs: FRONTEND_URL
1 parent 3bcb681 commit 675792a

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

README.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,13 @@
22

33
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.
44

5-
---
6-
75
## 📋 Features
86

97
- **Modular Design**: Organized structure with reusable components like PageObjects and Test Data Factories.
108
- **Scalability**: Easy to extend for larger projects.
119
- **Integration-Ready**: Built-in support for integrating with APIs, CI/CD pipelines, and reporting tools.
1210
- **Cross-Browser Support**: Pre-configured WebDriver factory for managing multiple browsers.
1311

14-
---
15-
1612
## 🏗️ Project Structure
1713

1814
```plaintext
@@ -68,13 +64,15 @@ Place it in the drivers/ directory or update your system PATH.
6864

6965
## ⚙️Configuration
7066

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.
7269

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` |
7876

7977
## 🧪 Running Tests
8078
Run all tests using pytest:

webdriver_factory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def get_safari_driver() -> WebDriver:
7171
stop_max_attempt_number=3,
7272
stop_max_delay=10000,
7373
wait_fixed=1000,
74-
# retry_on_exception=lambda e: isinstance(e, NewConnectionError) or isinstance(e, ConnectionRefusedError)
74+
# retry_on_exception=lambda e: isinstance(e, NewConnectionError) or isinstance(e, ConnectionRefusedError)
7575
)
7676
def get_remote_driver() -> WebDriver:
7777
res = get_window_resolution()

0 commit comments

Comments
 (0)