Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
docs(request): list all resource types in resourceType() (#42997)
Dmitry Gozman200edaf2e246
diff --git a/docs/src/api/class-request.md b/docs/src/api/class-request.mdindex 6ae84828f1..439bad74a5 100644--- a/docs/src/api/class-request.md+++ b/docs/src/api/class-request.md@@ -279,7 +279,7 @@ Console.WriteLine(request.RedirectedFrom?.RedirectedTo == request); // TrueContains the request's resource type as it was perceived by the rendering engine. ResourceType will be one of thefollowing: `document`, `stylesheet`, `image`, `media`, `font`, `script`, `texttrack`, `xhr`, `fetch`, `eventsource`,-`websocket`, `manifest`, `other`.+`websocket`, `manifest`, `beacon`, `ping`, `cspreport`, `other`.## async method: Request.response* since: v1.8diff --git a/packages/playwright-client/types/types.d.ts b/packages/playwright-client/types/types.d.tsindex cab3c0528a..21a79474f3 100644--- a/packages/playwright-client/types/types.d.ts+++ b/packages/playwright-client/types/types.d.ts@@ -22594,7 +22594,7 @@ export interface Request {/*** Contains the request's resource type as it was perceived by the rendering engine. ResourceType will be one of the* following: `document`, `stylesheet`, `image`, `media`, `font`, `script`, `texttrack`, `xhr`, `fetch`,- * `eventsource`, `websocket`, `manifest`, `other`.+ * `eventsource`, `websocket`, `manifest`, `beacon`, `ping`, `cspreport`, `other`.*/resourceType(): string;diff --git a/packages/playwright-core/types/types.d.ts b/packages/playwright-core/types/types.d.tsindex cab3c0528a..21a79474f3 100644--- a/packages/playwright-core/types/types.d.ts+++ b/packages/playwright-core/types/types.d.ts@@ -22594,7 +22594,7 @@ export interface Request {/*** Contains the request's resource type as it was perceived by the rendering engine. ResourceType will be one of the* following: `document`, `stylesheet`, `image`, `media`, `font`, `script`, `texttrack`, `xhr`, `fetch`,- * `eventsource`, `websocket`, `manifest`, `other`.+ * `eventsource`, `websocket`, `manifest`, `beacon`, `ping`, `cspreport`, `other`.*/resourceType(): string;