Testing

Playwright browser.newContext

Create independent browser storage and session state. Close when finished.

Formal Syntax & Structure

react syntaxreact
const context = await browser.newContext(); await context.close()

Working Example

Example Snippetreact
const context = await browser.newContext(); await context.close()
React Reference