| name | browser-agent-builder |
| description | Construction d'agents de navigation web autonomes incluant scraping intelligent, interaction DOM et gestion de sessions. Se déclenche avec "browser agent", "agent navigateur", "agent web autonome", "Puppeteer agent", "Playwright agent. Also triggers on "web browsing agent", "autonomous scraping agent". |
Browser Agent Builder
1. Choisir le framework
| Critère | Playwright | Puppeteer | Selenium |
|---|
| Multi-navigateur | ✅ Chromium, Firefox, WebKit | ❌ Chrome/Edge uniquement | ✅ tous |
| Auto-wait natif | ✅ | ❌ (manuel) | ❌ (manuel) |
| Interception réseau | ✅ route() | ✅ setRequestInterception | ❌ limité |
| Support mobile | ✅ devices preset | ❌ | ❌ |
| Ecosystème / doc | Excellent (2024–2026) | Bon | Vieillissant |
Décision : Playwright par défaut sur tout nouveau projet. Puppeteer si contrainte Chrome-only ou lib existante. Selenium uniquement legacy/Java.
npm init -y && npm i -D playwright
npx playwright install chromium
pip install playwright && playwright install chromium
2. Architecture de l'agent
┌───────────────────────────────────────────────┐
│ Orchestrateur │
│ (LLM : planifie, décide, retry si échec) │
└────────┬──────────────┬────────────┬──────────┘
│ │ │
Navigation Extraction Mémoire/État
(goto/click/fill) (DOM/vision) (cookies, historique)