MCPcopy
hub / github.com/vercel/next.js / PlaywrightBrowserContext

Interface PlaywrightBrowserContext

packages/next-playwright/src/index.ts:9–25  ·  packages/next-playwright/src/index.ts::PlaywrightBrowserContext

* Minimal interfaces for Playwright's Page and BrowserContext. We use * structural types rather than importing from a specific Playwright package * so this works with any version of playwright, playwright-core, or * @playwright/test.

Source from the content-addressed store, hash-verified

7 * @playwright/test.
8 */
9interface PlaywrightBrowserContext {
10 addCookies(
11 cookies: Array<{
12 name: string
13 value: string
14 url?: string
15 domain?: string
16 path?: string
17 }>
18 ): Promise<void>
19 cookies(): Promise<Array<{ name: string; value: string }>>
20 clearCookies(options?: {
21 name?: string
22 domain?: string
23 path?: string
24 }): Promise<void>
25}
26
27interface PlaywrightPage {
28 url(): string

Callers 9

instantFunction · 0.80
addCookieMethod · 0.80
beforePageLoadFunction · 0.80
myFuncFunction · 0.65
myFuncFunction · 0.65
instantFunction · 0.65
instantFunction · 0.80
deleteCookiesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected