Skip to content

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

docs: fix typo persistet -> persisted (#17498)

Philip Langer26150b706475
diff --git a/docs/src/api/params.md b/docs/src/api/params.md
index 1f884261ea..314b8e61bf 100644
--- a/docs/src/api/params.md
+++ b/docs/src/api/params.md
@@ -565,7 +565,7 @@ Logger sink for Playwright logging.
- `recordHar` <[Object]>
- `omitContent` ?<[boolean]> Optional setting to control whether to omit request content from the HAR. Defaults to
`false`. Deprecated, use `content` policy instead.
- - `content` ?<[HarContentPolicy]<"omit"|"embed"|"attach">> Optional setting to control resource content management. If `omit` is specified, content is not persisted. If `attach` is specified, resources are persistet as separate files or entries in the ZIP archive. If `embed` is specified, content is stored inline the HAR file as per HAR specification. Defaults to `attach` for `.zip` output files and to `embed` for all other file extensions.
+ - `content` ?<[HarContentPolicy]<"omit"|"embed"|"attach">> Optional setting to control resource content management. If `omit` is specified, content is not persisted. If `attach` is specified, resources are persisted as separate files or entries in the ZIP archive. If `embed` is specified, content is stored inline the HAR file as per HAR specification. Defaults to `attach` for `.zip` output files and to `embed` for all other file extensions.
- `path` <[path]> Path on the filesystem to write the HAR file to. If the file name ends with `.zip`, `content: 'attach'` is used by default.
- `mode` ?<[HarMode]<"full"|"minimal">> When set to `minimal`, only record information necessary for routing from HAR. This omits sizes, timing, page, cookies, security and other types of HAR information that are not used when replaying from HAR. Defaults to `full`.
- `urlFilter` ?<[string]|[RegExp]> A glob or regex pattern to filter requests that are stored in the HAR. When a [`option: baseURL`] via the context options was provided and the passed URL is a path, it gets merged via the [`new URL()`](https://developer.mozilla.org/en-US/docs/Web/API/URL/URL) constructor.
@@ -595,7 +595,7 @@ Optional setting to control whether to omit request content from the HAR. Defaul
- alias-python: record_har_content
- `recordHarContent` ?<[HarContentPolicy]<"omit"|"embed"|"attach">>
-Optional setting to control resource content management. If `omit` is specified, content is not persisted. If `attach` is specified, resources are persistet as separate files and all of these files are archived along with the HAR file. Defaults to `embed`, which stores content inline the HAR file as per HAR specification.
+Optional setting to control resource content management. If `omit` is specified, content is not persisted. If `attach` is specified, resources are persisted as separate files and all of these files are archived along with the HAR file. Defaults to `embed`, which stores content inline the HAR file as per HAR specification.
## context-option-recordhar-mode
* langs: csharp, java, python
diff --git a/packages/playwright-core/types/types.d.ts b/packages/playwright-core/types/types.d.ts
index 9385271a91..959e33eca2 100644
--- a/packages/playwright-core/types/types.d.ts
+++ b/packages/playwright-core/types/types.d.ts
@@ -10723,7 +10723,7 @@ export interface BrowserType<Unused = {}> {
/**
* Optional setting to control resource content management. If `omit` is specified, content is not persisted. If `attach`
- * is specified, resources are persistet as separate files or entries in the ZIP archive. If `embed` is specified, content
+ * is specified, resources are persisted as separate files or entries in the ZIP archive. If `embed` is specified, content
* is stored inline the HAR file as per HAR specification. Defaults to `attach` for `.zip` output files and to `embed` for
* all other file extensions.
*/
@@ -11927,7 +11927,7 @@ export interface AndroidDevice {
/**
* Optional setting to control resource content management. If `omit` is specified, content is not persisted. If `attach`
- * is specified, resources are persistet as separate files or entries in the ZIP archive. If `embed` is specified, content
+ * is specified, resources are persisted as separate files or entries in the ZIP archive. If `embed` is specified, content
* is stored inline the HAR file as per HAR specification. Defaults to `attach` for `.zip` output files and to `embed` for
* all other file extensions.
*/
@@ -13660,7 +13660,7 @@ export interface Browser extends EventEmitter {
/**
* Optional setting to control resource content management. If `omit` is specified, content is not persisted. If `attach`
- * is specified, resources are persistet as separate files or entries in the ZIP archive. If `embed` is specified, content
+ * is specified, resources are persisted as separate files or entries in the ZIP archive. If `embed` is specified, content
* is stored inline the HAR file as per HAR specification. Defaults to `attach` for `.zip` output files and to `embed` for
* all other file extensions.
*/
@@ -14454,7 +14454,7 @@ export interface Electron {
/**
* Optional setting to control resource content management. If `omit` is specified, content is not persisted. If `attach`
- * is specified, resources are persistet as separate files or entries in the ZIP archive. If `embed` is specified, content
+ * is specified, resources are persisted as separate files or entries in the ZIP archive. If `embed` is specified, content
* is stored inline the HAR file as per HAR specification. Defaults to `attach` for `.zip` output files and to `embed` for
* all other file extensions.
*/
@@ -16288,7 +16288,7 @@ export interface BrowserContextOptions {
/**
* Optional setting to control resource content management. If `omit` is specified, content is not persisted. If `attach`
- * is specified, resources are persistet as separate files or entries in the ZIP archive. If `embed` is specified, content
+ * is specified, resources are persisted as separate files or entries in the ZIP archive. If `embed` is specified, content
* is stored inline the HAR file as per HAR specification. Defaults to `attach` for `.zip` output files and to `embed` for
* all other file extensions.
*/