IBrowserController <Page>
Implemented by
Index
Properties
Methods
Properties
readonlybrowser
The raw browser handle from the underlying automation library
(Puppeteer Browser, Playwright Browser/BrowserContext, …).
Escape hatch for things the controller does not expose directly.
readonlyid
A stable identifier for this controller instance. Useful for tracking which browser served which request.
readonlylaunchContext
The configuration the underlying browser was launched with — proxy URL, fingerprint, session, launcher-specific options, etc.
Methods
close
Gracefully closes the browser this controller owns. After this resolves, the controller is no longer usable.
Returns Promise<void>
getCookies
Reads cookies for the given page.
Parameters
page: Page
Returns Promise<Cookie[]>
setCookies
Writes cookies for the given page.
Parameters
page: Page
cookies: Cookie[]
Returns Promise<void>
The minimal public contract of a browser controller.
Coordination with the pool (page-counting,
activate,assignBrowser, lifecycle promises, …) is intentionally not part of this contract.