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.
SubscribeRelated
BrowserType.launch()BrowserContextBrowserContext.close()BrowserContext.newPage()PageCDPSession