# raghav-pal/playwrightpython architecture

> Architecture diagram of the GitHub repository raghav-pal/playwrightpython, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/raghav-pal/playwrightpython
- Repository: https://github.com/raghav-pal/playwrightpython

## Overview

This repository appears to be a small Playwright-based browser-testing project, with OrangeHRM login and home page objects. The visible setup defines browser and page fixtures, but the test files that might connect those fixtures to the page objects were not sampled, so that workflow is not inferred. The README is empty; other test and data-driven capabilities cannot be established from the available evidence.

Main entry points: [`conftest_old.py`](https://github.com/raghav-pal/playwrightpython/blob/main/conftest_old.py) (Browser fixture), [`pages/orangehrm_login_page.py`](https://github.com/raghav-pal/playwrightpython/blob/main/pages/orangehrm_login_page.py) (Login page), [`pages/orangehrm_home_page.py`](https://github.com/raghav-pal/playwrightpython/blob/main/pages/orangehrm_home_page.py) (Home page)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_pytest(("Pytest"))
node_playwright["Playwright API"]
node_chromium["Chromium"]
node_browser_fixture["Browser fixture<br/>[conftest_old.py]"]
node_page_fixture["Page fixture<br/>[conftest_old.py]"]
node_login_page["Login page"]
node_home_page["Home page"]

node_pytest -->|"invokes fixture"| node_browser_fixture
node_browser_fixture -->|"starts runtime"| node_playwright
node_browser_fixture -->|"launches"| node_chromium
node_pytest -->|"invokes fixture"| node_page_fixture
node_page_fixture -->|"requests browser"| node_browser_fixture
node_login_page -->|"uses page API"| node_playwright
node_home_page -->|"uses page API"| node_playwright

click node_browser_fixture "https://github.com/raghav-pal/playwrightpython/blob/main/conftest_old.py"
click node_page_fixture "https://github.com/raghav-pal/playwrightpython/blob/main/conftest_old.py"
click node_login_page "https://github.com/raghav-pal/playwrightpython/blob/main/pages/orangehrm_login_page.py"
click node_home_page "https://github.com/raghav-pal/playwrightpython/blob/main/pages/orangehrm_home_page.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_pytest,node_chromium toneIndigo
class node_playwright toneMint
class node_browser_fixture toneBlue
class node_page_fixture,node_login_page,node_home_page toneTeal
```

## Components

### Other components

- **Pytest**
- **Playwright API**
- **Chromium**
- [Browser fixture](https://github.com/raghav-pal/playwrightpython/blob/main/conftest_old.py): `conftest_old.py`
- [Page fixture](https://github.com/raghav-pal/playwrightpython/blob/main/conftest_old.py): `conftest_old.py`
- [Login page](https://github.com/raghav-pal/playwrightpython/blob/main/pages/orangehrm_login_page.py): `pages/orangehrm_login_page.py`
- [Home page](https://github.com/raghav-pal/playwrightpython/blob/main/pages/orangehrm_home_page.py): `pages/orangehrm_home_page.py`

## Connections

- Pytest → Browser fixture: invokes fixture (evidence: `conftest_old.py`)
- Browser fixture → Playwright API: starts runtime (evidence: `conftest_old.py`)
- Browser fixture → Chromium: launches (evidence: `conftest_old.py`)
- Pytest → Page fixture: invokes fixture (evidence: `conftest_old.py`)
- Page fixture → Browser fixture: requests browser (evidence: `conftest_old.py`)
- Login page → Playwright API: uses page API (evidence: `pages/orangehrm_login_page.py`)
- Home page → Playwright API: uses page API (evidence: `pages/orangehrm_home_page.py`)
