Variable: browserBindTest
constbrowserBindTest:TestType<PlaywrightTestArgs&PlaywrightTestOptions&BrowserBindFixtures,PlaywrightWorkerArgs&PlaywrightWorkerOptions&BrowserBindWorkerDeps>
Playwright test object extended with the browserBind fixture.
Remarks
Extends the base Playwright test with a browserBind test-scoped fixture.
When PRAMAN_BIND=1, calls browser.bind(title) (Playwright 1.59+) to expose
the browser to Playwright CLI agents and logs the endpoint URL.
No mergeTests() required — this fixture only depends on the Playwright
built-in browser fixture.
Intent
Expose the test browser to Playwright CLI agents for agentic workflows
Capability
ui5.control
Example
import { browserBindTest } from 'playwright-praman';
// PRAMAN_BIND=1 npx playwright test
browserBindTest('inspect live', async ({ browserBind }) => {
if (browserBind.bound) {
// agent can connect at browserBind.endpointUrl
}
});