Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

docs(class-request.md): rephrase definition of request timing responseStart (#22170)

Sébastien Richert88544d537b88
diff --git a/docs/src/api/class-request.md b/docs/src/api/class-request.md
index cd52ffd3a2..15b566bd08 100644
--- a/docs/src/api/class-request.md
+++ b/docs/src/api/class-request.md
@@ -284,7 +284,7 @@ Returns resource size information for given request.
to retrieve the resource. The value is given in milliseconds relative to `startTime`, -1 if not available.
- `requestStart` <[float]> Time immediately before the browser starts requesting the resource from the server,
cache, or local resource. The value is given in milliseconds relative to `startTime`, -1 if not available.
- - `responseStart` <[float]> Time immediately after the browser starts requesting the resource from the server,
+ - `responseStart` <[float]> Time immediately after the browser receives the first byte of the response from the server,
cache, or local resource. The value is given in milliseconds relative to `startTime`, -1 if not available.
- `responseEnd` <[float]> Time immediately after the browser receives the last byte of the resource or immediately
before the transport connection is closed, whichever comes first. The value is given in milliseconds relative to
diff --git a/packages/playwright-core/types/types.d.ts b/packages/playwright-core/types/types.d.ts
index 4791fe268d..4e8b7aaaca 100644
--- a/packages/playwright-core/types/types.d.ts
+++ b/packages/playwright-core/types/types.d.ts
@@ -17795,8 +17795,8 @@ export interface Request {
requestStart: number;
/**
- * Time immediately after the browser starts requesting the resource from the server, cache, or local resource. The
- * value is given in milliseconds relative to `startTime`, -1 if not available.
+ * Time immediately after the browser receives the first byte of the response from the server, cache, or local
+ * resource. The value is given in milliseconds relative to `startTime`, -1 if not available.
*/
responseStart: number;