codeception/lib-innerbrowser
InnerBrowser module for Codeception that simulates browser requests without a real browser. Useful for functional testing PHP web apps by sending GET/POST requests, managing cookies and sessions, following redirects, and asserting responses quickly in-memory.
InnerBrowser is a lightweight browser simulation engine used primarily within Codeception’s testing framework. To get started:
composer require --dev codeception/lib-innerbrowserPhpBrowser or Framework modules (it powers their DOM-based HTML parsing and request simulation).tests/acceptance.suite.yml or tests/unit.suite.yml if using Codeception — InnerBrowser is typically enabled as a dependency of PhpBrowser or Symfony module.WebDriver or PhpBrowser to submit forms, then assert DOM elements via InnerBrowser’s Dom crawler-based methods (e.g., $I->seeElement('#submit-btn')).$I->grabHttpHeader() or $I->grabPageSource(), leveraging InnerBrowser’s internal parsing.$I->debugSection('response', $I->grabPageSource()); — InnerBrowser parses the HTML into a traversable DOM for efficient element selection.Laravel or Symfony modules — no direct instantiation required.$I->amOnPage()), DOM state updates automatically — no manual refresh needed.debug: true in your suite config to see real-time DOM snapshots. Use dom_dump() in custom helpers if extending functionality.InnerBrowser class via module configuration to inject custom DOM manipulation or logging hooks.How can I help you explore Laravel packages today?