Crawler Summary

ai-bdd-test-generator answer-first brief

A Playwright-based AI BDD test generator that analyzes websites, detects hover and popup interactions, and produces Gherkin .feature files using CrewAI and multiple LLM providers. AI BDD Test Generator This project generates Gherkin .feature files from a live website by combining Playwright, DOM analysis, and LLM-assisted orchestration. The current workflow supports three entry points: - main.py for the CLI pipeline - streamlit_app.py for the browser-based UI - api.py for the FastAPI backend and browser UI What the pipeline does 1. Capture and cache a DOM snapshot for the target URL. 2. Use a Capability contract not published. No trust telemetry is available yet. Last updated 10/9/2026.

Freshness

Last checked 10/9/2026

Best For

ai-bdd-test-generator is best for crewai, multi-agent workflows where OpenClaw compatibility matters.

Not Ideal For

Contract metadata is missing or unavailable for deterministic execution.

Evidence Sources Checked

editorial-content, GITHUB REPOS, runtime-metrics, public facts pack

Agent DossierGITHUB REPOSSafety: 66/100

ai-bdd-test-generator

A Playwright-based AI BDD test generator that analyzes websites, detects hover and popup interactions, and produces Gherkin .feature files using CrewAI and multiple LLM providers. AI BDD Test Generator This project generates Gherkin .feature files from a live website by combining Playwright, DOM analysis, and LLM-assisted orchestration. The current workflow supports three entry points: - main.py for the CLI pipeline - streamlit_app.py for the browser-based UI - api.py for the FastAPI backend and browser UI What the pipeline does 1. Capture and cache a DOM snapshot for the target URL. 2. Use a

OpenClawself-declared

Public facts

4

Change events

1

Artifacts

0

Freshness

Oct 9, 2026

Verifiededitorial-contentNo verified compatibility signals

Capability contract not published. No trust telemetry is available yet. Last updated 10/9/2026.

Trust evidence available

Trust score

Unknown

Compatibility

OpenClaw

Freshness

Oct 9, 2026

Vendor

Stavyagour

Artifacts

0

Benchmarks

0

Last release

Unpublished

Executive Summary

Key links, install path, and a quick operational read before the deeper crawl record.

Verifiededitorial-content

Summary

Capability contract not published. No trust telemetry is available yet. Last updated 10/9/2026.

Setup snapshot

  1. 1

    Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.

  2. 2

    Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Evidence Ledger

Everything public we have scraped or crawled about this agent, grouped by evidence type with provenance.

Verifiededitorial-content
Vendor (1)

Vendor

Stavyagour

profilemedium
Observed Oct 9, 2026Source linkProvenance
Compatibility (1)

Protocol compatibility

OpenClaw

contractmedium
Observed Oct 9, 2026Source linkProvenance
Security (1)

Handshake status

UNKNOWN

trustmedium
Observed unknownSource linkProvenance
Integration (1)

Crawlable docs

6 indexed pages on the official domain

search_documentmedium
Observed Apr 15, 2026Source linkProvenance

Release & Crawl Timeline

Merged public release, docs, artifact, benchmark, pricing, and trust refresh events.

Self-declaredagent-index

Artifacts Archive

Extracted files, examples, snippets, parameters, dependencies, permissions, and artifact metadata.

Self-declaredGITHUB REPOS

Extracted files

0

Examples

6

Snippets

0

Languages

python

Executable Examples

bash

python -m venv venv
venv\Scripts\activate
pip install -r requirements.txt
playwright install chromium

bash

python main.py --url https://www.tivdak.com/patient-stories/

bash

streamlit run streamlit_app.py

bash

uvicorn api:app --reload

text

assignment/
├── api.py                # Wrapper for the FastAPI app
├── bdd_generator/        # Main application package
│   ├── __init__.py
│   ├── api.py
│   ├── crew_orchestrator.py
│   ├── dom_analyzer.py
│   ├── interaction_engine.py
│   ├── llm_provider.py
│   ├── main.py
│   └── streamlit_app.py
├── cache/                # Runtime DOM cache and screenshots
├── docs/                 # Project documentation and sample logs
│   └── sample_console_log.txt
├── output/               # Generated feature files, reports, and screenshots
├── README.md
├── requirements.txt
├── main.py               # Wrapper for bdd_generator.main
└── streamlit_app.py      # Wrapper for bdd_generator.streamlit_app

bash

python -m venv venv
venv\Scripts\activate
pip install -r requirements.txt
playwright install chromium

Docs & README

Full documentation captured from public sources, including the complete README when available.

Self-declaredGITHUB REPOS

Docs source

GITHUB REPOS

Editorial quality

ready

A Playwright-based AI BDD test generator that analyzes websites, detects hover and popup interactions, and produces Gherkin .feature files using CrewAI and multiple LLM providers. AI BDD Test Generator This project generates Gherkin .feature files from a live website by combining Playwright, DOM analysis, and LLM-assisted orchestration. The current workflow supports three entry points: - main.py for the CLI pipeline - streamlit_app.py for the browser-based UI - api.py for the FastAPI backend and browser UI What the pipeline does 1. Capture and cache a DOM snapshot for the target URL. 2. Use a

Full README

AI BDD Test Generator

This project generates Gherkin .feature files from a live website by combining Playwright, DOM analysis, and LLM-assisted orchestration.

The current workflow supports three entry points:

  • main.py for the CLI pipeline
  • streamlit_app.py for the browser-based UI
  • api.py for the FastAPI backend and browser UI

What the pipeline does

  1. Capture and cache a DOM snapshot for the target URL.
  2. Use a provider such as Ollama, OpenAI, Gemini, or Groq to select hover and popup candidates.
  3. Run interactions with Playwright and record what changed.
  4. Write the final Gherkin output and a run report to output/.

Project layout

| File | Purpose | |------|---------| | main.py | CLI entry point and four-stage pipeline orchestration | | dom_analyzer.py | Captures the DOM, injects node tags, and stores cache data | | crew_orchestrator.py | Runs the AI selection and Gherkin generation step | | interaction_engine.py | Executes hover and click interactions and records evidence | | llm_provider.py | Builds provider-specific LLM clients | | streamlit_app.py | Streamlit UI for pasting a URL and generating .feature output | | api.py | FastAPI app with JSON endpoints and a simple HTML UI |

Requirements

  • Python 3.11 or newer
  • Playwright browser binaries
  • A running LLM provider when using the AI path

Installation

python -m venv venv
venv\Scripts\activate
pip install -r requirements.txt
playwright install chromium

Running the project

CLI pipeline:

python main.py --url https://www.tivdak.com/patient-stories/

Streamlit UI:

streamlit run streamlit_app.py

FastAPI backend:

uvicorn api:app --reload

AI BDD Test Generator

This project generates Gherkin .feature files from a live website by combining Playwright, DOM analysis, and LLM-assisted orchestration.

Entry points

  • main.py runs the CLI pipeline.
  • streamlit_app.py launches the Streamlit UI.
  • api.py exposes the FastAPI backend and HTML UI.

The real implementation now lives in the bdd_generator/ package. The root files are thin wrappers so the original commands still work.

Folder structure

assignment/
├── api.py                # Wrapper for the FastAPI app
├── bdd_generator/        # Main application package
│   ├── __init__.py
│   ├── api.py
│   ├── crew_orchestrator.py
│   ├── dom_analyzer.py
│   ├── interaction_engine.py
│   ├── llm_provider.py
│   ├── main.py
│   └── streamlit_app.py
├── cache/                # Runtime DOM cache and screenshots
├── docs/                 # Project documentation and sample logs
│   └── sample_console_log.txt
├── output/               # Generated feature files, reports, and screenshots
├── README.md
├── requirements.txt
├── main.py               # Wrapper for bdd_generator.main
└── streamlit_app.py      # Wrapper for bdd_generator.streamlit_app

What the pipeline does

  1. Capture and cache a DOM snapshot for the target URL.
  2. Use a provider such as Ollama, OpenAI, Gemini, or Groq to select hover and popup candidates.
  3. Run interactions with Playwright and record what changed.
  4. Write the final Gherkin output and a run report to output/.

Requirements

  • Python 3.11 or newer
  • Playwright browser binaries
  • A running LLM provider when using the AI path

Installation

python -m venv venv
venv\Scripts\activate
pip install -r requirements.txt
playwright install chromium

Running the project

CLI pipeline:

python main.py --url https://www.tivdak.com/patient-stories/

Streamlit UI:

streamlit run streamlit_app.py

FastAPI backend:

uvicorn api:app --reload

Provider options

The pipeline supports these providers through the shared LLM factory:

  • ollama
  • openai
  • gemini
  • groq

For Ollama, llama3.2 is the default model.

Output files

The pipeline writes its results to output/:

  • tests.feature
  • pipeline_report.json
  • interaction_log.json
  • interaction screenshots for hover and click runs

The DOM cache is stored under cache/, including dom_cache.sqlite and dom_snapshot.json.

Example run

python main.py --url https://www.tivdak.com/patient-stories/ --force-refresh

Notes

  • Streamlit uses a separate execution path from FastAPI, but both call into the same pipeline code.
  • The Streamlit page icon remains the only emoji in the project by design.

Technical overview

Stage 1: DOM analysis

bdd_generator/dom_analyzer.py launches Playwright, injects node tags, parses the rendered DOM, and caches the result.

Stage 2: AI orchestration

bdd_generator/crew_orchestrator.py selects likely hover and popup targets and writes the initial Gherkin skeleton.

Stage 3: Interaction engine

bdd_generator/interaction_engine.py executes hover and click actions, then compares the DOM before and after each interaction.

Stage 4: Reporting

bdd_generator/main.py combines the stage outputs, writes the final report, and prints a summary.

Sample log

The example console output is stored in docs/sample_console_log.txt.


### "networkidle timeout"

Sites with infinite scroll or WebSocket connections may never reach `networkidle`.
The fallback (`domcontentloaded`) handles this automatically. You can also increase timeout:

```python
# In dom_analyzer.py, line ~90, increase timeout_ms:
analyzer = DOMAnalyzer(headless=True, timeout_ms=60_000)

"No nodes tagged / 0 nodes"

The site may use heavy bot-detection. Try:

python main.py --url <URL> --no-headless

This opens a visible browser which is less likely to be detected as a bot.

"Gherkin content is empty"

Likely Ollama model capacity issue. Try a larger model:

ollama pull llama3.2:7b
python main.py --url <URL> --model llama3.2:7b

Low-RAM machines (< 8 GB)

ollama pull phi4-mini
python main.py --url <URL> --model phi4-mini

Project Structure

ai-bdd-test-generator/
├── main.py                  # CLI entry point + pipeline orchestrator
├── dom_analyzer.py          # Stage 1: Playwright + BS4 + SQLite DOM analysis
├── crew_orchestrator.py     # Stage 2: CrewAI + Ollama agent pipeline
├── interaction_engine.py    # Stage 3: Playwright interaction + DOM diffing
├── requirements.txt         # Python dependencies
├── README.md                # This file
├── .env.example             # Example environment variables
├── cache/                   # Auto-created: SQLite DB + JSON snapshots
│   ├── dom_cache.sqlite
│   └── dom_snapshot.json
└── output/                  # Auto-created: Gherkin + logs + screenshots
   ├── hover_tests.feature  # Main deliverable
    ├── pipeline_report.json
    ├── interaction_log.json
    └── *.png                # Interaction screenshots

Environment Variables (optional)

Create a .env file to override defaults without CLI flags:

OLLAMA_MODEL=llama3.2
OLLAMA_BASE_URL=http://localhost:11434

Load it by adding from dotenv import load_dotenv; load_dotenv() at the top of main.py.


Tech Stack Summary

| Layer | Technology | Why | |-------|-----------|-----| | Browser Automation | Playwright (async) | Faster than Selenium, native async, better JS execution | | HTML Parsing | BeautifulSoup4 + lxml | Lightweight, battle-tested, easy to strip noise tags | | Local LLM | Ollama | Zero API cost, offline, privacy-safe, model-agnostic | | Agent Framework | CrewAI | Clean task/agent abstraction, sequential pipeline support | | LLM Adapter | LangChain-Ollama | Standard interface, easy model swapping | | DOM Fingerprinting | Custom JS injection | Works on any site regardless of framework | | Caching | SQLite + JSON | Crash-safe, fast lookup, human-readable | | Output | Gherkin .feature | Industry-standard BDD format (Cucumber/Behave compatible) |


📜 License

MIT License — free to use, modify, and distribute.


🤝 References

Contract & API

Machine endpoints, protocol fit, contract coverage, invocation examples, and guardrails for agent-to-agent use.

MissingGITHUB REPOS

Contract coverage

Status

missing

Auth

None

Streaming

No

Data region

Unspecified

Protocol support

OpenClaw: self-declared

Requires: none

Forbidden: none

Guardrails

Operational confidence: low

No positive guardrails captured.
Invocation examples
curl -s "https://www.xpersona.co/api/v1/agents/crewai-stavyagour-ai-bdd-test-generator/snapshot"
curl -s "https://www.xpersona.co/api/v1/agents/crewai-stavyagour-ai-bdd-test-generator/contract"
curl -s "https://www.xpersona.co/api/v1/agents/crewai-stavyagour-ai-bdd-test-generator/trust"

Reliability & Benchmarks

Trust and runtime signals, benchmark suites, failure patterns, and practical risk constraints.

Missingruntime-metrics

Trust signals

Handshake

UNKNOWN

Confidence

unknown

Attempts 30d

unknown

Fallback rate

unknown

Runtime metrics

Observed P50

unknown

Observed P95

unknown

Rate limit

unknown

Estimated cost

unknown

Do not use if

Contract metadata is missing or unavailable for deterministic execution.
No benchmark suites or observed failure patterns are available.

Media & Demo

Every public screenshot, visual asset, demo link, and owner-provided destination tied to this agent.

Missingno-media
No screenshots, media assets, or demo links are available.

Related Agents

Neighboring agents from the same protocol and source ecosystem for comparison and shortlist building.

Self-declaredprotocol-neighbors
Github ReposUpdated 7h agoRank 70

AionUi

Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!

MCPOPENCLAW
Github ReposUpdated 6mo agoRank 70

activepieces

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

OPENCLAW
Github ReposUpdated 6mo agoRank 70

cherry-studio

AI productivity studio with smart chat, autonomous agents, and 300+ assistants.

MCPOPENCLAW
Github ReposUpdated 7mo agoRank 70

CopilotKit

The Frontend for Agents & Generative UI. React + Angular

OPENCLAW
Machine Appendix

Contract JSON

{
  "contractStatus": "missing",
  "authModes": [],
  "requires": [],
  "forbidden": [],
  "supportsMcp": false,
  "supportsA2a": false,
  "supportsStreaming": false,
  "inputSchemaRef": null,
  "outputSchemaRef": null,
  "dataRegion": null,
  "contractUpdatedAt": null,
  "sourceUpdatedAt": null,
  "freshnessSeconds": null
}

Invocation Guide

{
  "preferredApi": {
    "snapshotUrl": "https://www.xpersona.co/api/v1/agents/crewai-stavyagour-ai-bdd-test-generator/snapshot",
    "contractUrl": "https://www.xpersona.co/api/v1/agents/crewai-stavyagour-ai-bdd-test-generator/contract",
    "trustUrl": "https://www.xpersona.co/api/v1/agents/crewai-stavyagour-ai-bdd-test-generator/trust"
  },
  "curlExamples": [
    "curl -s \"https://www.xpersona.co/api/v1/agents/crewai-stavyagour-ai-bdd-test-generator/snapshot\"",
    "curl -s \"https://www.xpersona.co/api/v1/agents/crewai-stavyagour-ai-bdd-test-generator/contract\"",
    "curl -s \"https://www.xpersona.co/api/v1/agents/crewai-stavyagour-ai-bdd-test-generator/trust\""
  ],
  "jsonRequestTemplate": {
    "query": "summarize this repo",
    "constraints": {
      "maxLatencyMs": 2000,
      "protocolPreference": [
        "OPENCLEW"
      ]
    }
  },
  "jsonResponseTemplate": {
    "ok": true,
    "result": {
      "summary": "...",
      "confidence": 0.9
    },
    "meta": {
      "source": "GITHUB_REPOS",
      "generatedAt": "2026-10-10T01:53:06.922Z"
    }
  },
  "retryPolicy": {
    "maxAttempts": 3,
    "backoffMs": [
      500,
      1500,
      3500
    ],
    "retryableConditions": [
      "HTTP_429",
      "HTTP_503",
      "NETWORK_TIMEOUT"
    ]
  }
}

Trust JSON

{
  "status": "unavailable",
  "handshakeStatus": "UNKNOWN",
  "verificationFreshnessHours": null,
  "reputationScore": null,
  "p95LatencyMs": null,
  "successRate30d": null,
  "fallbackRate": null,
  "attempts30d": null,
  "trustUpdatedAt": null,
  "trustConfidence": "unknown",
  "sourceUpdatedAt": null,
  "freshnessSeconds": null
}

Capability Matrix

{
  "rows": [
    {
      "key": "OPENCLEW",
      "type": "protocol",
      "support": "unknown",
      "confidenceSource": "profile",
      "notes": "Listed on profile"
    },
    {
      "key": "crewai",
      "type": "capability",
      "support": "supported",
      "confidenceSource": "profile",
      "notes": "Declared in agent profile metadata"
    },
    {
      "key": "multi-agent",
      "type": "capability",
      "support": "supported",
      "confidenceSource": "profile",
      "notes": "Declared in agent profile metadata"
    }
  ],
  "flattenedTokens": "protocol:OPENCLEW|unknown|profile capability:crewai|supported|profile capability:multi-agent|supported|profile"
}

Facts JSON

[
  {
    "factKey": "vendor",
    "category": "vendor",
    "label": "Vendor",
    "value": "Stavyagour",
    "href": "https://github.com/stavyagour/ai-bdd-test-generator",
    "sourceUrl": "https://github.com/stavyagour/ai-bdd-test-generator",
    "sourceType": "profile",
    "confidence": "medium",
    "observedAt": "2026-10-09T21:21:36.031Z",
    "isPublic": true
  },
  {
    "factKey": "protocols",
    "category": "compatibility",
    "label": "Protocol compatibility",
    "value": "OpenClaw",
    "href": "https://www.xpersona.co/api/v1/agents/crewai-stavyagour-ai-bdd-test-generator/contract",
    "sourceUrl": "https://www.xpersona.co/api/v1/agents/crewai-stavyagour-ai-bdd-test-generator/contract",
    "sourceType": "contract",
    "confidence": "medium",
    "observedAt": "2026-10-09T21:21:36.031Z",
    "isPublic": true
  },
  {
    "factKey": "docs_crawl",
    "category": "integration",
    "label": "Crawlable docs",
    "value": "6 indexed pages on the official domain",
    "href": "https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenclaw%2Fskills%2Ftree%2Fmain%2Fskills%2Fasleep123%2Fcaldav-calendar",
    "sourceUrl": "https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenclaw%2Fskills%2Ftree%2Fmain%2Fskills%2Fasleep123%2Fcaldav-calendar",
    "sourceType": "search_document",
    "confidence": "medium",
    "observedAt": "2026-04-15T05:03:46.393Z",
    "isPublic": true
  },
  {
    "factKey": "handshake_status",
    "category": "security",
    "label": "Handshake status",
    "value": "UNKNOWN",
    "href": "https://www.xpersona.co/api/v1/agents/crewai-stavyagour-ai-bdd-test-generator/trust",
    "sourceUrl": "https://www.xpersona.co/api/v1/agents/crewai-stavyagour-ai-bdd-test-generator/trust",
    "sourceType": "trust",
    "confidence": "medium",
    "observedAt": null,
    "isPublic": true
  }
]

Change Events JSON

[
  {
    "eventType": "docs_update",
    "title": "Docs refreshed: Sign in to GitHub · GitHub",
    "description": "Fresh crawlable documentation was indexed for the official domain.",
    "href": "https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenclaw%2Fskills%2Ftree%2Fmain%2Fskills%2Fasleep123%2Fcaldav-calendar",
    "sourceUrl": "https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenclaw%2Fskills%2Ftree%2Fmain%2Fskills%2Fasleep123%2Fcaldav-calendar",
    "sourceType": "search_document",
    "confidence": "medium",
    "observedAt": "2026-04-15T05:03:46.393Z",
    "isPublic": true
  }
]

Sponsored

Ads related to ai-bdd-test-generator and adjacent AI workflows.