diff --git a/docs/src/api/class-browsercontext.md b/docs/src/api/class-browsercontext.md index f4506b4c1c..64bad34d2c 100644 --- a/docs/src/api/class-browsercontext.md +++ b/docs/src/api/class-browsercontext.md @@ -144,6 +144,7 @@ cases). ::: ## event: BrowserContext.request +* langs: js, python, java - argument: <[Request]> Emitted when a request is issued from any pages created through this context. @@ -154,6 +155,7 @@ In order to intercept and mutate requests, see [`method: BrowserContext.route`] or [`method: Page.route`]. ## event: BrowserContext.requestFailed +* langs: js, python, java - argument: <[Request]> Emitted when a request fails, for example by timing out. To only listen for @@ -165,6 +167,7 @@ with [`event: BrowserContext.requestFinished`] event and not with [`event: Brows ::: ## event: BrowserContext.requestFinished +* langs: js, python, java - argument: <[Request]> Emitted when a request finishes successfully after downloading the response body. For a successful response, the @@ -172,6 +175,7 @@ sequence of events is `request`, `response` and `requestfinished`. To listen for successful requests from a particular page, use [`event: Page.requestFinished`]. ## event: BrowserContext.response +* langs: js, python, java - argument: <[Response]> Emitted when [response] status and headers are received for a request. For a successful response, the sequence of events @@ -1164,6 +1168,7 @@ current working directory. If no path is provided, storage state is still returned, but won't be saved to the disk. ## property: BrowserContext.tracing +* langs: js, python, java - type: <[Tracing]> ## async method: BrowserContext.unroute diff --git a/docs/src/api/class-tracing.md b/docs/src/api/class-tracing.md index b98e59a4e5..be5879c37a 100644 --- a/docs/src/api/class-tracing.md +++ b/docs/src/api/class-tracing.md @@ -1,4 +1,5 @@ # class: Tracing +* langs: js, python, java API for collecting and saving Playwright traces. Playwright traces can be opened using the Playwright CLI after Playwright script runs. diff --git a/docs/src/api/params.md b/docs/src/api/params.md index e50721e38c..672f41285c 100644 --- a/docs/src/api/params.md +++ b/docs/src/api/params.md @@ -680,6 +680,7 @@ Maximum time in milliseconds to wait for the browser instance to start. Defaults disable timeout. ## browser-option-tracedir +* langs: js, python, java - `traceDir` <[path]> If specified, traces are saved into this directory.