Skip to content

Browser not consistently launching in multi-agent Playwright automation setup #66

@deepakkamboj

Description

@deepakkamboj

I’m using Voltagent to build a multi-agent system for Playwright-based test automation (repo: https://github.com/deepakkamboj/volt-agent-playwright).

Sometimes the Playwright browser launches successfully, but most of the time, it does not launch or connect properly when triggered by an agent. This causes the workflow to hang or fail inconsistently.

What I'm Trying to Build

  • A planner agent to split tasks based on user input.
  • Specialized agents like NavigationAgent, InteractionAgent, CodeGenAgent for different steps.
  • A single browser instance shared across agents to avoid launching multiple browsers.
  • Proper usage of prompts/templates for reliable multi-agent orchestration.

Problems Encountered

  • Browser not reliably launching or connecting.
  • Unclear how to manage prompts effectively across multiple agents.
  • Need advice on maintaining a shared Playwright browser instance across agents.

Steps to Reproduce

  • Use multiple agents via Voltagent.
  • Try launching browser via Playwright in agent tool calls.
  • Observe that browser sometimes starts but often fails silently.

Expected Behavior

  • Browser should launch reliably when needed.
  • Ability to share a browser session across different agents.

Would appreciate any guidance or example patterns to structure a reliable multi-agent system using Voltagent for real-world Playwright automation.

Thanks and regards,
Deepak Kamboj

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions