Skip to content
masterclass Buddy

Playwright · Interface

Browser

A Browser is a running Playwright browser. Use it to create isolated browser contexts and pages, check connection state, and close browser resources.

Last updated

Since
v1.59

Syntax

browser.newContext(options?)
browser.newPage(options?)
browser.close(options?)
browser.contexts()
browser.isConnected()
browser.browserType()
browser.newBrowserCDPSession()
browser.bind(title, options?)

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • BrowserType.launch()
  • BrowserContext
  • BrowserContext.close()
  • BrowserContext.newPage()
  • Page
  • CDPSession

Source: Browser | Playwright. Checked 2026-11-03.