playwrightProxy
Это содержимое пока не доступно на вашем языке.
constplaywrightProxy:object
Defined in: playwright/index.ts:390
Type Declaration
Section titled “Type Declaration”before()
Section titled “before()”before(
page,testInfo,mode,options?):Promise<void>
Setup before test - sets the proxy mode and configures page with custom header Automatically sets up page.on(‘close’) handler for cleanup
Parameters
Section titled “Parameters”Page
Playwright page object
testInfo
Section titled “testInfo”Playwright test info object
The proxy mode to use for this test
options?
Section titled “options?”number | ClientSideRecordingOptions & object
Optional configuration including timeout and client-side recording patterns
Returns
Section titled “Returns”Promise<void>
teardown()
Section titled “teardown()”teardown():
Promise<void>
Global teardown — switches the proxy to transparent mode and redacts the
.har files Playwright wrote during the run.
HAR redaction happens here, not per-test, on purpose: Playwright flushes a
HAR when its context closes but does not await context.on('close')
listeners, so redacting there races the process exit and can truncate the
file. globalTeardown runs once, after every context has flushed, and IS
awaited — so it’s the only reliable place to scrub HARs.
Returns
Section titled “Returns”Promise<void>