[KongchangAI]
ConceptBrowser Context

BrowserContext

An abstraction layer unique to the Playwright framework, situated between a Browser instance and a Page. Each BrowserContext maintains its own isolated Cookie store, LocalStorage, and network rules, enabling complete state isolation between individual test cases.

Timeline (last 90 days)

Oct 9

Playwright's architecture is divided into three layers: Browser (browser process), BrowserContext (isolated environment), and Page (tab).

Unverified50%
Oct 9

BrowserContext supports loading previously saved login states via the storageState parameter, bypassing the need to log in again for each test.

Unverified50%
Sep 22

Playwright introduces a BrowserContext mechanism for context isolation, allowing states such as cookies, cache, and login status to be independent between different tests.

Unverified50%
Sep 22

Playwright recommends that each test case exclusively uses one BrowserContext, which is destroyed after use to ensure state isolation between test cases.

Unverified50%
Aug 22

2020年微软推出Playwright,支持多浏览器并引入BrowserContext概念实现轻量级隔离

Unverified50%
Aug 22

EgoLite为每个Space创建BrowserContext时以COW(Copy-on-Write)方式引用主Profile的登录态数据,实现继承但隔离的效果

Unverified50%

All Facts (6)

Source Articles