chore: fix Locator type issues (#34705)
This commit is contained in:
parent
4c8af0128f
commit
967c4f5e3b
|
|
@ -81,7 +81,7 @@ Methods like [`method: APIRequestContext.get`] take the base URL into considerat
|
||||||
- `records` <[Array]<[Object]>>
|
- `records` <[Array]<[Object]>>
|
||||||
- `key` ?<[Object]>
|
- `key` ?<[Object]>
|
||||||
- `keyEncoded` ?<[Object]> if `key` is not JSON-serializable, this contains an encoded version that preserves types.
|
- `keyEncoded` ?<[Object]> if `key` is not JSON-serializable, this contains an encoded version that preserves types.
|
||||||
- `value` <[Object]>
|
- `value` ?<[Object]>
|
||||||
- `valueEncoded` ?<[Object]> if `value` is not JSON-serializable, this contains an encoded version that preserves types.
|
- `valueEncoded` ?<[Object]> if `value` is not JSON-serializable, this contains an encoded version that preserves types.
|
||||||
|
|
||||||
Populates context with given storage state. This option can be used to initialize context with logged-in information
|
Populates context with given storage state. This option can be used to initialize context with logged-in information
|
||||||
|
|
|
||||||
|
|
@ -897,7 +897,7 @@ context cookies from the response. The method will automatically follow redirect
|
||||||
- `records` <[Array]<[Object]>>
|
- `records` <[Array]<[Object]>>
|
||||||
- `key` ?<[Object]>
|
- `key` ?<[Object]>
|
||||||
- `keyEncoded` ?<[Object]> if `key` is not JSON-serializable, this contains an encoded version that preserves types.
|
- `keyEncoded` ?<[Object]> if `key` is not JSON-serializable, this contains an encoded version that preserves types.
|
||||||
- `value` <[Object]>
|
- `value` ?<[Object]>
|
||||||
- `valueEncoded` ?<[Object]> if `value` is not JSON-serializable, this contains an encoded version that preserves types.
|
- `valueEncoded` ?<[Object]> if `value` is not JSON-serializable, this contains an encoded version that preserves types.
|
||||||
|
|
||||||
Returns storage state for this request context, contains current cookies and local storage snapshot if it was passed to the constructor.
|
Returns storage state for this request context, contains current cookies and local storage snapshot if it was passed to the constructor.
|
||||||
|
|
|
||||||
|
|
@ -1528,7 +1528,7 @@ Whether to emulate network being offline for the browser context.
|
||||||
- `records` <[Array]<[Object]>>
|
- `records` <[Array]<[Object]>>
|
||||||
- `key` ?<[Object]>
|
- `key` ?<[Object]>
|
||||||
- `keyEncoded` ?<[Object]> if `key` is not JSON-serializable, this contains an encoded version that preserves types.
|
- `keyEncoded` ?<[Object]> if `key` is not JSON-serializable, this contains an encoded version that preserves types.
|
||||||
- `value` <[Object]>
|
- `value` ?<[Object]>
|
||||||
- `valueEncoded` ?<[Object]> if `value` is not JSON-serializable, this contains an encoded version that preserves types.
|
- `valueEncoded` ?<[Object]> if `value` is not JSON-serializable, this contains an encoded version that preserves types.
|
||||||
|
|
||||||
Returns storage state for this browser context, contains current cookies, local storage snapshot and IndexedDB snapshot.
|
Returns storage state for this browser context, contains current cookies, local storage snapshot and IndexedDB snapshot.
|
||||||
|
|
|
||||||
|
|
@ -281,7 +281,7 @@ Specify environment variables that will be visible to the browser. Defaults to `
|
||||||
- `records` <[Array]<[Object]>>
|
- `records` <[Array]<[Object]>>
|
||||||
- `key` ?<[Object]>
|
- `key` ?<[Object]>
|
||||||
- `keyEncoded` ?<[Object]> if `key` is not JSON-serializable, this contains an encoded version that preserves types.
|
- `keyEncoded` ?<[Object]> if `key` is not JSON-serializable, this contains an encoded version that preserves types.
|
||||||
- `value` <[Object]>
|
- `value` ?<[Object]>
|
||||||
- `valueEncoded` ?<[Object]> if `value` is not JSON-serializable, this contains an encoded version that preserves types.
|
- `valueEncoded` ?<[Object]> if `value` is not JSON-serializable, this contains an encoded version that preserves types.
|
||||||
|
|
||||||
Learn more about [storage state and auth](../auth.md).
|
Learn more about [storage state and auth](../auth.md).
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@ export type SelectOptionOptions = { force?: boolean, timeout?: number };
|
||||||
export type FilePayload = { name: string, mimeType: string, buffer: Buffer };
|
export type FilePayload = { name: string, mimeType: string, buffer: Buffer };
|
||||||
export type StorageState = {
|
export type StorageState = {
|
||||||
cookies: channels.NetworkCookie[],
|
cookies: channels.NetworkCookie[],
|
||||||
origins: channels.OriginStorage[]
|
origins: channels.OriginStorage[],
|
||||||
};
|
};
|
||||||
export type SetStorageState = {
|
export type SetStorageState = {
|
||||||
cookies?: channels.SetNetworkCookie[],
|
cookies?: channels.SetNetworkCookie[],
|
||||||
|
|
|
||||||
10
packages/playwright-core/types/types.d.ts
vendored
10
packages/playwright-core/types/types.d.ts
vendored
|
|
@ -9351,7 +9351,7 @@ export interface BrowserContext {
|
||||||
*/
|
*/
|
||||||
keyEncoded?: Object;
|
keyEncoded?: Object;
|
||||||
|
|
||||||
value: Object;
|
value?: Object;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* if `value` is not JSON-serializable, this contains an encoded version that preserves types.
|
* if `value` is not JSON-serializable, this contains an encoded version that preserves types.
|
||||||
|
|
@ -10170,7 +10170,7 @@ export interface Browser {
|
||||||
*/
|
*/
|
||||||
keyEncoded?: Object;
|
keyEncoded?: Object;
|
||||||
|
|
||||||
value: Object;
|
value?: Object;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* if `value` is not JSON-serializable, this contains an encoded version that preserves types.
|
* if `value` is not JSON-serializable, this contains an encoded version that preserves types.
|
||||||
|
|
@ -17758,7 +17758,7 @@ export interface APIRequest {
|
||||||
*/
|
*/
|
||||||
keyEncoded?: Object;
|
keyEncoded?: Object;
|
||||||
|
|
||||||
value: Object;
|
value?: Object;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* if `value` is not JSON-serializable, this contains an encoded version that preserves types.
|
* if `value` is not JSON-serializable, this contains an encoded version that preserves types.
|
||||||
|
|
@ -18616,7 +18616,7 @@ export interface APIRequestContext {
|
||||||
*/
|
*/
|
||||||
keyEncoded?: Object;
|
keyEncoded?: Object;
|
||||||
|
|
||||||
value: Object;
|
value?: Object;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* if `value` is not JSON-serializable, this contains an encoded version that preserves types.
|
* if `value` is not JSON-serializable, this contains an encoded version that preserves types.
|
||||||
|
|
@ -22512,7 +22512,7 @@ export interface BrowserContextOptions {
|
||||||
*/
|
*/
|
||||||
keyEncoded?: Object;
|
keyEncoded?: Object;
|
||||||
|
|
||||||
value: Object;
|
value?: Object;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* if `value` is not JSON-serializable, this contains an encoded version that preserves types.
|
* if `value` is not JSON-serializable, this contains an encoded version that preserves types.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue