# adiarbili/car-search architecture

> Architecture diagram of the GitHub repository adiarbili/car-search, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-29). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/adiarbili/car-search
- Repository: https://github.com/adiarbili/car-search

## Overview

This is a small Selenium/TestNG automation project, not a car-search application. Its active test configures a ChromeDriver instance to launch an Electron executable, then waits for UI elements, clicks `div1`, enters a username, and clicks `btn1`. The available source supports this workflow only; no application URL or broader search behavior is shown.

Main entry points: [`Car Search/src/Auto.java`](https://github.com/adiarbili/car-search/blob/master/Car%20Search/src/Auto.java) (Auto test)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_automation["UI automation"]
  node_auto["Auto test<br/>[Auto.java]"]
  node_webdriver["Selenium WebDriver<br/>[Auto.java]"]
end

node_testng(("TestNG runner"))
node_electron["Electron app"]
node_ui["App UI"]

node_testng -->|"runs tests"| node_auto
node_auto -->|"creates driver"| node_webdriver
node_auto -->|"selects executable"| node_electron
node_auto -->|"waits and interacts"| node_webdriver
node_webdriver -->|"locates and manipulates"| node_ui

click node_auto "https://github.com/adiarbili/car-search/blob/master/Car%20Search/src/Auto.java"
click node_webdriver "https://github.com/adiarbili/car-search/blob/master/Car%20Search/src/Auto.java"

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_auto,node_webdriver,node_ui toneBlue
class node_testng,node_electron toneIndigo
```

## Components

### UI automation

- [Auto test](https://github.com/adiarbili/car-search/blob/master/Car%20Search/src/Auto.java): `Car Search/src/Auto.java`
- [Selenium WebDriver](https://github.com/adiarbili/car-search/blob/master/Car%20Search/src/Auto.java): `Car Search/src/Auto.java`

### Other components

- **TestNG runner**
- **Electron app**
- **App UI**

## Connections

- TestNG runner → Auto test: runs tests
- Auto test → Selenium WebDriver: creates driver
- Auto test → Electron app: selects executable
- Auto test → Selenium WebDriver: waits and interacts
- Selenium WebDriver → App UI: locates and manipulates
