2020-06-26 01:05:36 +02:00
|
|
|
/**
|
|
|
|
|
* Copyright (c) Microsoft Corporation.
|
|
|
|
|
*
|
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
|
*
|
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
*
|
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
|
* limitations under the License.
|
|
|
|
|
*/
|
|
|
|
|
|
2020-07-21 02:38:06 +02:00
|
|
|
// This file is generated by generate_channels.js, do not edit manually.
|
|
|
|
|
|
2023-02-23 23:37:53 +01:00
|
|
|
import type { CallMetadata } from './callMetadata';
|
|
|
|
|
|
2022-07-05 17:58:34 +02:00
|
|
|
export type Binary = Buffer;
|
2020-07-17 18:53:13 +02:00
|
|
|
|
2021-11-18 00:26:01 +01:00
|
|
|
export interface Channel {
|
2020-07-21 02:38:06 +02:00
|
|
|
}
|
|
|
|
|
|
2021-11-18 00:26:01 +01:00
|
|
|
// ----------- Initializer Traits -----------
|
|
|
|
|
export type InitializerTraits<T> =
|
|
|
|
|
T extends JsonPipeChannel ? JsonPipeInitializer :
|
|
|
|
|
T extends AndroidDeviceChannel ? AndroidDeviceInitializer :
|
|
|
|
|
T extends AndroidSocketChannel ? AndroidSocketInitializer :
|
|
|
|
|
T extends AndroidChannel ? AndroidInitializer :
|
|
|
|
|
T extends ElectronApplicationChannel ? ElectronApplicationInitializer :
|
|
|
|
|
T extends ElectronChannel ? ElectronInitializer :
|
|
|
|
|
T extends CDPSessionChannel ? CDPSessionInitializer :
|
2022-03-18 17:00:52 +01:00
|
|
|
T extends WritableStreamChannel ? WritableStreamInitializer :
|
2021-11-18 00:26:01 +01:00
|
|
|
T extends StreamChannel ? StreamInitializer :
|
|
|
|
|
T extends ArtifactChannel ? ArtifactInitializer :
|
2022-01-22 20:25:13 +01:00
|
|
|
T extends TracingChannel ? TracingInitializer :
|
2021-11-18 00:26:01 +01:00
|
|
|
T extends DialogChannel ? DialogInitializer :
|
|
|
|
|
T extends BindingCallChannel ? BindingCallInitializer :
|
|
|
|
|
T extends ConsoleMessageChannel ? ConsoleMessageInitializer :
|
|
|
|
|
T extends WebSocketChannel ? WebSocketInitializer :
|
|
|
|
|
T extends ResponseChannel ? ResponseInitializer :
|
|
|
|
|
T extends RouteChannel ? RouteInitializer :
|
|
|
|
|
T extends RequestChannel ? RequestInitializer :
|
|
|
|
|
T extends ElementHandleChannel ? ElementHandleInitializer :
|
|
|
|
|
T extends JSHandleChannel ? JSHandleInitializer :
|
|
|
|
|
T extends WorkerChannel ? WorkerInitializer :
|
|
|
|
|
T extends FrameChannel ? FrameInitializer :
|
|
|
|
|
T extends PageChannel ? PageInitializer :
|
|
|
|
|
T extends BrowserContextChannel ? BrowserContextInitializer :
|
|
|
|
|
T extends EventTargetChannel ? EventTargetInitializer :
|
|
|
|
|
T extends BrowserChannel ? BrowserInitializer :
|
|
|
|
|
T extends BrowserTypeChannel ? BrowserTypeInitializer :
|
|
|
|
|
T extends SelectorsChannel ? SelectorsInitializer :
|
2022-02-13 23:03:47 +01:00
|
|
|
T extends SocksSupportChannel ? SocksSupportInitializer :
|
2022-09-22 00:35:52 +02:00
|
|
|
T extends DebugControllerChannel ? DebugControllerInitializer :
|
2021-11-18 00:26:01 +01:00
|
|
|
T extends PlaywrightChannel ? PlaywrightInitializer :
|
|
|
|
|
T extends RootChannel ? RootInitializer :
|
2021-12-10 02:21:17 +01:00
|
|
|
T extends LocalUtilsChannel ? LocalUtilsInitializer :
|
2021-11-18 00:26:01 +01:00
|
|
|
T extends APIRequestContextChannel ? APIRequestContextInitializer :
|
|
|
|
|
object;
|
|
|
|
|
|
|
|
|
|
// ----------- Event Traits -----------
|
|
|
|
|
export type EventsTraits<T> =
|
|
|
|
|
T extends JsonPipeChannel ? JsonPipeEvents :
|
|
|
|
|
T extends AndroidDeviceChannel ? AndroidDeviceEvents :
|
|
|
|
|
T extends AndroidSocketChannel ? AndroidSocketEvents :
|
|
|
|
|
T extends AndroidChannel ? AndroidEvents :
|
|
|
|
|
T extends ElectronApplicationChannel ? ElectronApplicationEvents :
|
|
|
|
|
T extends ElectronChannel ? ElectronEvents :
|
|
|
|
|
T extends CDPSessionChannel ? CDPSessionEvents :
|
2022-03-18 17:00:52 +01:00
|
|
|
T extends WritableStreamChannel ? WritableStreamEvents :
|
2021-11-18 00:26:01 +01:00
|
|
|
T extends StreamChannel ? StreamEvents :
|
|
|
|
|
T extends ArtifactChannel ? ArtifactEvents :
|
2022-01-22 20:25:13 +01:00
|
|
|
T extends TracingChannel ? TracingEvents :
|
2021-11-18 00:26:01 +01:00
|
|
|
T extends DialogChannel ? DialogEvents :
|
|
|
|
|
T extends BindingCallChannel ? BindingCallEvents :
|
|
|
|
|
T extends ConsoleMessageChannel ? ConsoleMessageEvents :
|
|
|
|
|
T extends WebSocketChannel ? WebSocketEvents :
|
|
|
|
|
T extends ResponseChannel ? ResponseEvents :
|
|
|
|
|
T extends RouteChannel ? RouteEvents :
|
|
|
|
|
T extends RequestChannel ? RequestEvents :
|
|
|
|
|
T extends ElementHandleChannel ? ElementHandleEvents :
|
|
|
|
|
T extends JSHandleChannel ? JSHandleEvents :
|
|
|
|
|
T extends WorkerChannel ? WorkerEvents :
|
|
|
|
|
T extends FrameChannel ? FrameEvents :
|
|
|
|
|
T extends PageChannel ? PageEvents :
|
|
|
|
|
T extends BrowserContextChannel ? BrowserContextEvents :
|
|
|
|
|
T extends EventTargetChannel ? EventTargetEvents :
|
|
|
|
|
T extends BrowserChannel ? BrowserEvents :
|
|
|
|
|
T extends BrowserTypeChannel ? BrowserTypeEvents :
|
|
|
|
|
T extends SelectorsChannel ? SelectorsEvents :
|
2022-02-13 23:03:47 +01:00
|
|
|
T extends SocksSupportChannel ? SocksSupportEvents :
|
2022-09-22 00:35:52 +02:00
|
|
|
T extends DebugControllerChannel ? DebugControllerEvents :
|
2021-11-18 00:26:01 +01:00
|
|
|
T extends PlaywrightChannel ? PlaywrightEvents :
|
|
|
|
|
T extends RootChannel ? RootEvents :
|
2021-12-10 02:21:17 +01:00
|
|
|
T extends LocalUtilsChannel ? LocalUtilsEvents :
|
2021-11-18 00:26:01 +01:00
|
|
|
T extends APIRequestContextChannel ? APIRequestContextEvents :
|
|
|
|
|
undefined;
|
|
|
|
|
|
|
|
|
|
// ----------- EventTarget Traits -----------
|
|
|
|
|
export type EventTargetTraits<T> =
|
|
|
|
|
T extends JsonPipeChannel ? JsonPipeEventTarget :
|
|
|
|
|
T extends AndroidDeviceChannel ? AndroidDeviceEventTarget :
|
|
|
|
|
T extends AndroidSocketChannel ? AndroidSocketEventTarget :
|
|
|
|
|
T extends AndroidChannel ? AndroidEventTarget :
|
|
|
|
|
T extends ElectronApplicationChannel ? ElectronApplicationEventTarget :
|
|
|
|
|
T extends ElectronChannel ? ElectronEventTarget :
|
|
|
|
|
T extends CDPSessionChannel ? CDPSessionEventTarget :
|
2022-03-18 17:00:52 +01:00
|
|
|
T extends WritableStreamChannel ? WritableStreamEventTarget :
|
2021-11-18 00:26:01 +01:00
|
|
|
T extends StreamChannel ? StreamEventTarget :
|
|
|
|
|
T extends ArtifactChannel ? ArtifactEventTarget :
|
2022-01-22 20:25:13 +01:00
|
|
|
T extends TracingChannel ? TracingEventTarget :
|
2021-11-18 00:26:01 +01:00
|
|
|
T extends DialogChannel ? DialogEventTarget :
|
|
|
|
|
T extends BindingCallChannel ? BindingCallEventTarget :
|
|
|
|
|
T extends ConsoleMessageChannel ? ConsoleMessageEventTarget :
|
|
|
|
|
T extends WebSocketChannel ? WebSocketEventTarget :
|
|
|
|
|
T extends ResponseChannel ? ResponseEventTarget :
|
|
|
|
|
T extends RouteChannel ? RouteEventTarget :
|
|
|
|
|
T extends RequestChannel ? RequestEventTarget :
|
|
|
|
|
T extends ElementHandleChannel ? ElementHandleEventTarget :
|
|
|
|
|
T extends JSHandleChannel ? JSHandleEventTarget :
|
|
|
|
|
T extends WorkerChannel ? WorkerEventTarget :
|
|
|
|
|
T extends FrameChannel ? FrameEventTarget :
|
|
|
|
|
T extends PageChannel ? PageEventTarget :
|
|
|
|
|
T extends BrowserContextChannel ? BrowserContextEventTarget :
|
|
|
|
|
T extends EventTargetChannel ? EventTargetEventTarget :
|
|
|
|
|
T extends BrowserChannel ? BrowserEventTarget :
|
|
|
|
|
T extends BrowserTypeChannel ? BrowserTypeEventTarget :
|
|
|
|
|
T extends SelectorsChannel ? SelectorsEventTarget :
|
2022-02-13 23:03:47 +01:00
|
|
|
T extends SocksSupportChannel ? SocksSupportEventTarget :
|
2022-09-22 00:35:52 +02:00
|
|
|
T extends DebugControllerChannel ? DebugControllerEventTarget :
|
2021-11-18 00:26:01 +01:00
|
|
|
T extends PlaywrightChannel ? PlaywrightEventTarget :
|
|
|
|
|
T extends RootChannel ? RootEventTarget :
|
2021-12-10 02:21:17 +01:00
|
|
|
T extends LocalUtilsChannel ? LocalUtilsEventTarget :
|
2021-11-18 00:26:01 +01:00
|
|
|
T extends APIRequestContextChannel ? APIRequestContextEventTarget :
|
|
|
|
|
undefined;
|
|
|
|
|
|
2021-02-14 05:31:06 +01:00
|
|
|
export type StackFrame = {
|
|
|
|
|
file: string,
|
2023-02-25 03:36:15 +01:00
|
|
|
line: number,
|
|
|
|
|
column: number,
|
2021-02-14 05:31:06 +01:00
|
|
|
function?: string,
|
|
|
|
|
};
|
|
|
|
|
|
2020-09-11 04:25:44 +02:00
|
|
|
export type Metadata = {
|
2023-02-23 06:08:47 +01:00
|
|
|
location?: {
|
|
|
|
|
file: string,
|
|
|
|
|
line?: number,
|
|
|
|
|
column?: number,
|
|
|
|
|
},
|
2021-02-20 03:12:33 +01:00
|
|
|
apiName?: string,
|
2021-10-30 21:26:38 +02:00
|
|
|
internal?: boolean,
|
2023-02-23 23:37:53 +01:00
|
|
|
wallTime?: number,
|
2021-02-14 05:31:06 +01:00
|
|
|
};
|
|
|
|
|
|
2023-02-23 06:08:47 +01:00
|
|
|
export type ClientSideCallMetadata = {
|
|
|
|
|
id: number,
|
|
|
|
|
stack?: StackFrame[],
|
|
|
|
|
};
|
|
|
|
|
|
2020-12-10 00:06:57 +01:00
|
|
|
export type Point = {
|
|
|
|
|
x: number,
|
|
|
|
|
y: number,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type Rect = {
|
|
|
|
|
x: number,
|
|
|
|
|
y: number,
|
|
|
|
|
width: number,
|
|
|
|
|
height: number,
|
|
|
|
|
};
|
|
|
|
|
|
2020-07-21 21:44:30 +02:00
|
|
|
export type SerializedValue = {
|
|
|
|
|
n?: number,
|
|
|
|
|
b?: boolean,
|
|
|
|
|
s?: string,
|
2020-07-21 02:38:06 +02:00
|
|
|
v?: 'null' | 'undefined' | 'NaN' | 'Infinity' | '-Infinity' | '-0',
|
|
|
|
|
d?: string,
|
2022-07-05 17:53:02 +02:00
|
|
|
u?: string,
|
2020-07-21 02:38:06 +02:00
|
|
|
r?: {
|
|
|
|
|
p: string,
|
|
|
|
|
f: string,
|
|
|
|
|
},
|
|
|
|
|
a?: SerializedValue[],
|
|
|
|
|
o?: {
|
|
|
|
|
k: string,
|
|
|
|
|
v: SerializedValue,
|
|
|
|
|
}[],
|
|
|
|
|
h?: number,
|
2022-05-10 03:51:53 +02:00
|
|
|
id?: number,
|
|
|
|
|
ref?: number,
|
2020-07-16 22:36:22 +02:00
|
|
|
};
|
2020-07-21 02:38:06 +02:00
|
|
|
|
|
|
|
|
export type SerializedArgument = {
|
|
|
|
|
value: SerializedValue,
|
|
|
|
|
handles: Channel[],
|
2020-07-17 18:32:27 +02:00
|
|
|
};
|
2020-06-30 01:37:38 +02:00
|
|
|
|
2021-09-24 01:46:46 +02:00
|
|
|
export type ExpectedTextValue = {
|
|
|
|
|
string?: string,
|
|
|
|
|
regexSource?: string,
|
|
|
|
|
regexFlags?: string,
|
|
|
|
|
matchSubstring?: boolean,
|
2022-06-02 14:52:53 +02:00
|
|
|
ignoreCase?: boolean,
|
2021-09-24 01:46:46 +02:00
|
|
|
normalizeWhiteSpace?: boolean,
|
|
|
|
|
};
|
|
|
|
|
|
2020-07-21 02:38:06 +02:00
|
|
|
export type AXNode = {
|
|
|
|
|
role: string,
|
|
|
|
|
name: string,
|
2020-07-21 17:26:48 +02:00
|
|
|
valueString?: string,
|
|
|
|
|
valueNumber?: number,
|
2020-07-21 02:38:06 +02:00
|
|
|
description?: string,
|
|
|
|
|
keyshortcuts?: string,
|
|
|
|
|
roledescription?: string,
|
|
|
|
|
valuetext?: string,
|
|
|
|
|
disabled?: boolean,
|
|
|
|
|
expanded?: boolean,
|
|
|
|
|
focused?: boolean,
|
|
|
|
|
modal?: boolean,
|
|
|
|
|
multiline?: boolean,
|
|
|
|
|
multiselectable?: boolean,
|
|
|
|
|
readonly?: boolean,
|
|
|
|
|
required?: boolean,
|
|
|
|
|
selected?: boolean,
|
2020-07-21 17:26:48 +02:00
|
|
|
checked?: 'checked' | 'unchecked' | 'mixed',
|
|
|
|
|
pressed?: 'pressed' | 'released' | 'mixed',
|
2020-07-21 02:38:06 +02:00
|
|
|
level?: number,
|
|
|
|
|
valuemin?: number,
|
|
|
|
|
valuemax?: number,
|
|
|
|
|
autocomplete?: string,
|
|
|
|
|
haspopup?: string,
|
|
|
|
|
invalid?: string,
|
|
|
|
|
orientation?: string,
|
|
|
|
|
children?: AXNode[],
|
|
|
|
|
};
|
|
|
|
|
|
2020-11-13 23:24:53 +01:00
|
|
|
export type SetNetworkCookie = {
|
|
|
|
|
name: string,
|
|
|
|
|
value: string,
|
|
|
|
|
url?: string,
|
|
|
|
|
domain?: string,
|
|
|
|
|
path?: string,
|
|
|
|
|
expires?: number,
|
|
|
|
|
httpOnly?: boolean,
|
|
|
|
|
secure?: boolean,
|
|
|
|
|
sameSite?: 'Strict' | 'Lax' | 'None',
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type NetworkCookie = {
|
|
|
|
|
name: string,
|
|
|
|
|
value: string,
|
|
|
|
|
domain: string,
|
|
|
|
|
path: string,
|
|
|
|
|
expires: number,
|
|
|
|
|
httpOnly: boolean,
|
|
|
|
|
secure: boolean,
|
|
|
|
|
sameSite: 'Strict' | 'Lax' | 'None',
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type NameValue = {
|
|
|
|
|
name: string,
|
|
|
|
|
value: string,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type OriginStorage = {
|
|
|
|
|
origin: string,
|
|
|
|
|
localStorage: NameValue[],
|
|
|
|
|
};
|
|
|
|
|
|
2020-07-21 02:38:06 +02:00
|
|
|
export type SerializedError = {
|
|
|
|
|
error?: {
|
|
|
|
|
message: string,
|
|
|
|
|
name: string,
|
|
|
|
|
stack?: string,
|
|
|
|
|
},
|
|
|
|
|
value?: SerializedValue,
|
|
|
|
|
};
|
|
|
|
|
|
2022-06-08 03:09:47 +02:00
|
|
|
export type RecordHarOptions = {
|
|
|
|
|
path: string,
|
2022-06-17 03:27:25 +02:00
|
|
|
content?: 'embed' | 'attach' | 'omit',
|
2022-06-22 23:44:12 +02:00
|
|
|
mode?: 'full' | 'minimal',
|
2022-06-08 03:09:47 +02:00
|
|
|
urlGlob?: string,
|
|
|
|
|
urlRegexSource?: string,
|
|
|
|
|
urlRegexFlags?: string,
|
|
|
|
|
};
|
|
|
|
|
|
2021-10-01 21:11:33 +02:00
|
|
|
export type FormField = {
|
|
|
|
|
name: string,
|
|
|
|
|
value?: string,
|
|
|
|
|
file?: {
|
|
|
|
|
name: string,
|
2021-11-18 03:12:26 +01:00
|
|
|
mimeType?: string,
|
2021-10-01 21:11:33 +02:00
|
|
|
buffer: Binary,
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
|
2021-11-05 16:27:49 +01:00
|
|
|
// ----------- APIRequestContext -----------
|
2022-01-22 20:25:13 +01:00
|
|
|
export type APIRequestContextInitializer = {
|
|
|
|
|
tracing: TracingChannel,
|
|
|
|
|
};
|
2021-11-18 00:26:01 +01:00
|
|
|
export interface APIRequestContextEventTarget {
|
|
|
|
|
}
|
|
|
|
|
export interface APIRequestContextChannel extends APIRequestContextEventTarget, Channel {
|
|
|
|
|
_type_APIRequestContext: boolean;
|
2023-02-23 23:37:53 +01:00
|
|
|
fetch(params: APIRequestContextFetchParams, metadata?: CallMetadata): Promise<APIRequestContextFetchResult>;
|
|
|
|
|
fetchResponseBody(params: APIRequestContextFetchResponseBodyParams, metadata?: CallMetadata): Promise<APIRequestContextFetchResponseBodyResult>;
|
|
|
|
|
fetchLog(params: APIRequestContextFetchLogParams, metadata?: CallMetadata): Promise<APIRequestContextFetchLogResult>;
|
|
|
|
|
storageState(params?: APIRequestContextStorageStateParams, metadata?: CallMetadata): Promise<APIRequestContextStorageStateResult>;
|
|
|
|
|
disposeAPIResponse(params: APIRequestContextDisposeAPIResponseParams, metadata?: CallMetadata): Promise<APIRequestContextDisposeAPIResponseResult>;
|
|
|
|
|
dispose(params?: APIRequestContextDisposeParams, metadata?: CallMetadata): Promise<APIRequestContextDisposeResult>;
|
2021-09-15 03:31:35 +02:00
|
|
|
}
|
2021-11-05 16:27:49 +01:00
|
|
|
export type APIRequestContextFetchParams = {
|
2021-09-15 03:31:35 +02:00
|
|
|
url: string,
|
|
|
|
|
params?: NameValue[],
|
|
|
|
|
method?: string,
|
|
|
|
|
headers?: NameValue[],
|
|
|
|
|
postData?: Binary,
|
2021-10-01 21:11:33 +02:00
|
|
|
jsonData?: any,
|
|
|
|
|
formData?: NameValue[],
|
|
|
|
|
multipartData?: FormField[],
|
2021-09-15 03:31:35 +02:00
|
|
|
timeout?: number,
|
|
|
|
|
failOnStatusCode?: boolean,
|
2021-09-29 00:33:36 +02:00
|
|
|
ignoreHTTPSErrors?: boolean,
|
2022-09-09 21:14:42 +02:00
|
|
|
maxRedirects?: number,
|
2021-09-15 03:31:35 +02:00
|
|
|
};
|
2021-11-05 16:27:49 +01:00
|
|
|
export type APIRequestContextFetchOptions = {
|
2021-09-15 03:31:35 +02:00
|
|
|
params?: NameValue[],
|
|
|
|
|
method?: string,
|
|
|
|
|
headers?: NameValue[],
|
|
|
|
|
postData?: Binary,
|
2021-10-01 21:11:33 +02:00
|
|
|
jsonData?: any,
|
|
|
|
|
formData?: NameValue[],
|
|
|
|
|
multipartData?: FormField[],
|
2021-09-15 03:31:35 +02:00
|
|
|
timeout?: number,
|
|
|
|
|
failOnStatusCode?: boolean,
|
2021-09-29 00:33:36 +02:00
|
|
|
ignoreHTTPSErrors?: boolean,
|
2022-09-09 21:14:42 +02:00
|
|
|
maxRedirects?: number,
|
2021-09-15 03:31:35 +02:00
|
|
|
};
|
2021-11-05 16:27:49 +01:00
|
|
|
export type APIRequestContextFetchResult = {
|
2021-11-20 05:32:29 +01:00
|
|
|
response: APIResponse,
|
2021-09-15 03:31:35 +02:00
|
|
|
};
|
2021-11-05 16:27:49 +01:00
|
|
|
export type APIRequestContextFetchResponseBodyParams = {
|
2021-09-15 03:31:35 +02:00
|
|
|
fetchUid: string,
|
|
|
|
|
};
|
2021-11-05 16:27:49 +01:00
|
|
|
export type APIRequestContextFetchResponseBodyOptions = {
|
2021-09-15 03:31:35 +02:00
|
|
|
|
|
|
|
|
};
|
2021-11-05 16:27:49 +01:00
|
|
|
export type APIRequestContextFetchResponseBodyResult = {
|
2021-09-15 03:31:35 +02:00
|
|
|
binary?: Binary,
|
|
|
|
|
};
|
2021-12-01 03:12:19 +01:00
|
|
|
export type APIRequestContextFetchLogParams = {
|
|
|
|
|
fetchUid: string,
|
|
|
|
|
};
|
|
|
|
|
export type APIRequestContextFetchLogOptions = {
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
export type APIRequestContextFetchLogResult = {
|
|
|
|
|
log: string[],
|
|
|
|
|
};
|
2021-11-05 16:27:49 +01:00
|
|
|
export type APIRequestContextStorageStateParams = {};
|
|
|
|
|
export type APIRequestContextStorageStateOptions = {};
|
|
|
|
|
export type APIRequestContextStorageStateResult = {
|
2021-09-30 23:14:29 +02:00
|
|
|
cookies: NetworkCookie[],
|
|
|
|
|
origins: OriginStorage[],
|
|
|
|
|
};
|
2021-11-05 16:27:49 +01:00
|
|
|
export type APIRequestContextDisposeAPIResponseParams = {
|
2021-09-15 03:31:35 +02:00
|
|
|
fetchUid: string,
|
|
|
|
|
};
|
2021-11-05 16:27:49 +01:00
|
|
|
export type APIRequestContextDisposeAPIResponseOptions = {
|
2021-09-15 03:31:35 +02:00
|
|
|
|
|
|
|
|
};
|
2021-11-05 16:27:49 +01:00
|
|
|
export type APIRequestContextDisposeAPIResponseResult = void;
|
|
|
|
|
export type APIRequestContextDisposeParams = {};
|
|
|
|
|
export type APIRequestContextDisposeOptions = {};
|
|
|
|
|
export type APIRequestContextDisposeResult = void;
|
2021-09-15 03:31:35 +02:00
|
|
|
|
2021-11-05 16:27:49 +01:00
|
|
|
export interface APIRequestContextEvents {
|
2021-09-15 03:31:35 +02:00
|
|
|
}
|
|
|
|
|
|
2021-11-05 16:27:49 +01:00
|
|
|
export type APIResponse = {
|
2021-09-08 22:40:07 +02:00
|
|
|
fetchUid: string,
|
2021-08-24 23:29:04 +02:00
|
|
|
url: string,
|
|
|
|
|
status: number,
|
|
|
|
|
statusText: string,
|
|
|
|
|
headers: NameValue[],
|
|
|
|
|
};
|
|
|
|
|
|
2021-11-02 01:12:19 +01:00
|
|
|
export type LifecycleEvent = 'load' | 'domcontentloaded' | 'networkidle' | 'commit';
|
2021-12-10 02:21:17 +01:00
|
|
|
// ----------- LocalUtils -----------
|
|
|
|
|
export type LocalUtilsInitializer = {};
|
|
|
|
|
export interface LocalUtilsEventTarget {
|
|
|
|
|
}
|
|
|
|
|
export interface LocalUtilsChannel extends LocalUtilsEventTarget, Channel {
|
|
|
|
|
_type_LocalUtils: boolean;
|
2023-02-23 23:37:53 +01:00
|
|
|
zip(params: LocalUtilsZipParams, metadata?: CallMetadata): Promise<LocalUtilsZipResult>;
|
|
|
|
|
harOpen(params: LocalUtilsHarOpenParams, metadata?: CallMetadata): Promise<LocalUtilsHarOpenResult>;
|
|
|
|
|
harLookup(params: LocalUtilsHarLookupParams, metadata?: CallMetadata): Promise<LocalUtilsHarLookupResult>;
|
|
|
|
|
harClose(params: LocalUtilsHarCloseParams, metadata?: CallMetadata): Promise<LocalUtilsHarCloseResult>;
|
|
|
|
|
harUnzip(params: LocalUtilsHarUnzipParams, metadata?: CallMetadata): Promise<LocalUtilsHarUnzipResult>;
|
|
|
|
|
connect(params: LocalUtilsConnectParams, metadata?: CallMetadata): Promise<LocalUtilsConnectResult>;
|
2023-03-17 02:17:07 +01:00
|
|
|
tracingStarted(params: LocalUtilsTracingStartedParams, metadata?: CallMetadata): Promise<LocalUtilsTracingStartedResult>;
|
|
|
|
|
addStackToTracingNoReply(params: LocalUtilsAddStackToTracingNoReplyParams, metadata?: CallMetadata): Promise<LocalUtilsAddStackToTracingNoReplyResult>;
|
|
|
|
|
traceDiscarded(params: LocalUtilsTraceDiscardedParams, metadata?: CallMetadata): Promise<LocalUtilsTraceDiscardedResult>;
|
2021-12-10 02:21:17 +01:00
|
|
|
}
|
|
|
|
|
export type LocalUtilsZipParams = {
|
|
|
|
|
zipFile: string,
|
|
|
|
|
entries: NameValue[],
|
2023-03-17 02:17:07 +01:00
|
|
|
stacksId?: string,
|
2023-02-23 06:08:47 +01:00
|
|
|
mode: 'write' | 'append',
|
|
|
|
|
includeSources: boolean,
|
2021-12-10 02:21:17 +01:00
|
|
|
};
|
|
|
|
|
export type LocalUtilsZipOptions = {
|
2023-03-17 02:17:07 +01:00
|
|
|
stacksId?: string,
|
2021-12-10 02:21:17 +01:00
|
|
|
};
|
|
|
|
|
export type LocalUtilsZipResult = void;
|
2022-06-19 05:24:55 +02:00
|
|
|
export type LocalUtilsHarOpenParams = {
|
|
|
|
|
file: string,
|
|
|
|
|
};
|
|
|
|
|
export type LocalUtilsHarOpenOptions = {
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
export type LocalUtilsHarOpenResult = {
|
2022-06-20 20:07:53 +02:00
|
|
|
harId?: string,
|
|
|
|
|
error?: string,
|
2022-06-19 05:24:55 +02:00
|
|
|
};
|
|
|
|
|
export type LocalUtilsHarLookupParams = {
|
|
|
|
|
harId: string,
|
|
|
|
|
url: string,
|
|
|
|
|
method: string,
|
2022-06-20 23:14:40 +02:00
|
|
|
headers: NameValue[],
|
2022-07-05 17:58:34 +02:00
|
|
|
postData?: Binary,
|
2022-06-19 05:24:55 +02:00
|
|
|
isNavigationRequest: boolean,
|
|
|
|
|
};
|
|
|
|
|
export type LocalUtilsHarLookupOptions = {
|
2022-07-05 17:58:34 +02:00
|
|
|
postData?: Binary,
|
2022-06-19 05:24:55 +02:00
|
|
|
};
|
|
|
|
|
export type LocalUtilsHarLookupResult = {
|
|
|
|
|
action: 'error' | 'redirect' | 'fulfill' | 'noentry',
|
|
|
|
|
message?: string,
|
|
|
|
|
redirectURL?: string,
|
|
|
|
|
status?: number,
|
|
|
|
|
headers?: NameValue[],
|
2022-07-05 17:58:34 +02:00
|
|
|
body?: Binary,
|
2022-06-19 05:24:55 +02:00
|
|
|
};
|
|
|
|
|
export type LocalUtilsHarCloseParams = {
|
|
|
|
|
harId: string,
|
|
|
|
|
};
|
|
|
|
|
export type LocalUtilsHarCloseOptions = {
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
export type LocalUtilsHarCloseResult = void;
|
2022-06-29 00:09:36 +02:00
|
|
|
export type LocalUtilsHarUnzipParams = {
|
|
|
|
|
zipFile: string,
|
|
|
|
|
harFile: string,
|
|
|
|
|
};
|
|
|
|
|
export type LocalUtilsHarUnzipOptions = {
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
export type LocalUtilsHarUnzipResult = void;
|
2022-09-27 22:05:06 +02:00
|
|
|
export type LocalUtilsConnectParams = {
|
|
|
|
|
wsEndpoint: string,
|
|
|
|
|
headers?: any,
|
2022-12-09 20:16:29 +01:00
|
|
|
exposeNetwork?: string,
|
2022-09-27 22:05:06 +02:00
|
|
|
slowMo?: number,
|
|
|
|
|
timeout?: number,
|
|
|
|
|
socksProxyRedirectPortForTest?: number,
|
|
|
|
|
};
|
|
|
|
|
export type LocalUtilsConnectOptions = {
|
|
|
|
|
headers?: any,
|
2022-12-09 20:16:29 +01:00
|
|
|
exposeNetwork?: string,
|
2022-09-27 22:05:06 +02:00
|
|
|
slowMo?: number,
|
|
|
|
|
timeout?: number,
|
|
|
|
|
socksProxyRedirectPortForTest?: number,
|
|
|
|
|
};
|
|
|
|
|
export type LocalUtilsConnectResult = {
|
|
|
|
|
pipe: JsonPipeChannel,
|
|
|
|
|
};
|
2023-03-17 02:17:07 +01:00
|
|
|
export type LocalUtilsTracingStartedParams = {
|
|
|
|
|
tracesDir?: string,
|
|
|
|
|
traceName: string,
|
|
|
|
|
};
|
|
|
|
|
export type LocalUtilsTracingStartedOptions = {
|
|
|
|
|
tracesDir?: string,
|
|
|
|
|
};
|
|
|
|
|
export type LocalUtilsTracingStartedResult = {
|
|
|
|
|
stacksId: string,
|
|
|
|
|
};
|
|
|
|
|
export type LocalUtilsAddStackToTracingNoReplyParams = {
|
|
|
|
|
callData: ClientSideCallMetadata,
|
|
|
|
|
};
|
|
|
|
|
export type LocalUtilsAddStackToTracingNoReplyOptions = {
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
export type LocalUtilsAddStackToTracingNoReplyResult = void;
|
|
|
|
|
export type LocalUtilsTraceDiscardedParams = {
|
|
|
|
|
stacksId: string,
|
|
|
|
|
};
|
|
|
|
|
export type LocalUtilsTraceDiscardedOptions = {
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
export type LocalUtilsTraceDiscardedResult = void;
|
2021-12-10 02:21:17 +01:00
|
|
|
|
|
|
|
|
export interface LocalUtilsEvents {
|
|
|
|
|
}
|
|
|
|
|
|
2021-08-19 17:31:14 +02:00
|
|
|
// ----------- Root -----------
|
|
|
|
|
export type RootInitializer = {};
|
2021-11-18 00:26:01 +01:00
|
|
|
export interface RootEventTarget {
|
|
|
|
|
}
|
|
|
|
|
export interface RootChannel extends RootEventTarget, Channel {
|
|
|
|
|
_type_Root: boolean;
|
2023-02-23 23:37:53 +01:00
|
|
|
initialize(params: RootInitializeParams, metadata?: CallMetadata): Promise<RootInitializeResult>;
|
2021-08-19 17:31:14 +02:00
|
|
|
}
|
|
|
|
|
export type RootInitializeParams = {
|
2022-10-19 01:39:58 +02:00
|
|
|
sdkLanguage: 'javascript' | 'python' | 'java' | 'csharp',
|
2021-08-19 17:31:14 +02:00
|
|
|
};
|
|
|
|
|
export type RootInitializeOptions = {
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
export type RootInitializeResult = {
|
|
|
|
|
playwright: PlaywrightChannel,
|
|
|
|
|
};
|
|
|
|
|
|
2021-08-30 18:43:18 +02:00
|
|
|
export interface RootEvents {
|
|
|
|
|
}
|
|
|
|
|
|
2020-07-21 02:38:06 +02:00
|
|
|
// ----------- Playwright -----------
|
2020-07-09 03:42:04 +02:00
|
|
|
export type PlaywrightInitializer = {
|
|
|
|
|
chromium: BrowserTypeChannel,
|
|
|
|
|
firefox: BrowserTypeChannel,
|
|
|
|
|
webkit: BrowserTypeChannel,
|
2020-12-10 00:06:57 +01:00
|
|
|
android: AndroidChannel,
|
|
|
|
|
electron: ElectronChannel,
|
2021-12-10 02:21:17 +01:00
|
|
|
utils: LocalUtilsChannel,
|
2020-07-21 02:38:06 +02:00
|
|
|
deviceDescriptors: {
|
|
|
|
|
name: string,
|
|
|
|
|
descriptor: {
|
|
|
|
|
userAgent: string,
|
|
|
|
|
viewport: {
|
|
|
|
|
width: number,
|
|
|
|
|
height: number,
|
|
|
|
|
},
|
2021-03-29 23:10:58 +02:00
|
|
|
screen?: {
|
|
|
|
|
width: number,
|
|
|
|
|
height: number,
|
|
|
|
|
},
|
2020-07-21 02:38:06 +02:00
|
|
|
deviceScaleFactor: number,
|
|
|
|
|
isMobile: boolean,
|
|
|
|
|
hasTouch: boolean,
|
2020-09-03 22:12:43 +02:00
|
|
|
defaultBrowserType: 'chromium' | 'firefox' | 'webkit',
|
2020-07-21 02:38:06 +02:00
|
|
|
},
|
|
|
|
|
}[],
|
2020-07-14 02:47:15 +02:00
|
|
|
selectors: SelectorsChannel,
|
2021-04-12 20:14:54 +02:00
|
|
|
preLaunchedBrowser?: BrowserChannel,
|
2022-10-25 02:23:11 +02:00
|
|
|
preConnectedAndroidDevice?: AndroidDeviceChannel,
|
2022-02-13 23:03:47 +01:00
|
|
|
socksSupport?: SocksSupportChannel,
|
2020-07-09 03:42:04 +02:00
|
|
|
};
|
2021-11-18 00:26:01 +01:00
|
|
|
export interface PlaywrightEventTarget {
|
|
|
|
|
}
|
|
|
|
|
export interface PlaywrightChannel extends PlaywrightEventTarget, Channel {
|
|
|
|
|
_type_Playwright: boolean;
|
2023-02-23 23:37:53 +01:00
|
|
|
newRequest(params: PlaywrightNewRequestParams, metadata?: CallMetadata): Promise<PlaywrightNewRequestResult>;
|
2020-07-21 02:38:06 +02:00
|
|
|
}
|
2021-09-15 03:31:35 +02:00
|
|
|
export type PlaywrightNewRequestParams = {
|
2021-09-22 21:44:22 +02:00
|
|
|
baseURL?: string,
|
|
|
|
|
userAgent?: string,
|
2021-09-15 03:31:35 +02:00
|
|
|
ignoreHTTPSErrors?: boolean,
|
2021-09-22 21:44:22 +02:00
|
|
|
extraHTTPHeaders?: NameValue[],
|
|
|
|
|
httpCredentials?: {
|
|
|
|
|
username: string,
|
|
|
|
|
password: string,
|
2023-03-27 17:52:00 +02:00
|
|
|
origin?: string,
|
2021-09-22 21:44:22 +02:00
|
|
|
},
|
|
|
|
|
proxy?: {
|
|
|
|
|
server: string,
|
|
|
|
|
bypass?: string,
|
|
|
|
|
username?: string,
|
|
|
|
|
password?: string,
|
|
|
|
|
},
|
|
|
|
|
timeout?: number,
|
2021-09-30 23:14:29 +02:00
|
|
|
storageState?: {
|
|
|
|
|
cookies: NetworkCookie[],
|
|
|
|
|
origins: OriginStorage[],
|
|
|
|
|
},
|
2022-01-22 20:25:13 +01:00
|
|
|
tracesDir?: string,
|
2021-09-15 03:31:35 +02:00
|
|
|
};
|
|
|
|
|
export type PlaywrightNewRequestOptions = {
|
2021-09-22 21:44:22 +02:00
|
|
|
baseURL?: string,
|
|
|
|
|
userAgent?: string,
|
2021-09-15 03:31:35 +02:00
|
|
|
ignoreHTTPSErrors?: boolean,
|
2021-09-22 21:44:22 +02:00
|
|
|
extraHTTPHeaders?: NameValue[],
|
|
|
|
|
httpCredentials?: {
|
|
|
|
|
username: string,
|
|
|
|
|
password: string,
|
2023-03-27 17:52:00 +02:00
|
|
|
origin?: string,
|
2021-09-22 21:44:22 +02:00
|
|
|
},
|
|
|
|
|
proxy?: {
|
|
|
|
|
server: string,
|
|
|
|
|
bypass?: string,
|
|
|
|
|
username?: string,
|
|
|
|
|
password?: string,
|
|
|
|
|
},
|
|
|
|
|
timeout?: number,
|
2021-09-30 23:14:29 +02:00
|
|
|
storageState?: {
|
|
|
|
|
cookies: NetworkCookie[],
|
|
|
|
|
origins: OriginStorage[],
|
|
|
|
|
},
|
2022-01-22 20:25:13 +01:00
|
|
|
tracesDir?: string,
|
2021-09-15 03:31:35 +02:00
|
|
|
};
|
|
|
|
|
export type PlaywrightNewRequestResult = {
|
2021-11-05 16:27:49 +01:00
|
|
|
request: APIRequestContextChannel,
|
2021-09-15 03:31:35 +02:00
|
|
|
};
|
2020-07-09 03:42:04 +02:00
|
|
|
|
2021-08-30 18:43:18 +02:00
|
|
|
export interface PlaywrightEvents {
|
2022-02-13 23:03:47 +01:00
|
|
|
}
|
|
|
|
|
|
2022-09-20 23:32:21 +02:00
|
|
|
export type RecorderSource = {
|
|
|
|
|
isRecorded: boolean,
|
|
|
|
|
id: string,
|
|
|
|
|
label: string,
|
|
|
|
|
text: string,
|
|
|
|
|
language: string,
|
|
|
|
|
highlight: {
|
|
|
|
|
line: number,
|
|
|
|
|
type: string,
|
|
|
|
|
}[],
|
|
|
|
|
revealLine?: number,
|
|
|
|
|
group?: string,
|
|
|
|
|
};
|
|
|
|
|
|
2022-09-22 00:35:52 +02:00
|
|
|
// ----------- DebugController -----------
|
|
|
|
|
export type DebugControllerInitializer = {};
|
|
|
|
|
export interface DebugControllerEventTarget {
|
|
|
|
|
on(event: 'inspectRequested', callback: (params: DebugControllerInspectRequestedEvent) => void): this;
|
2022-10-22 02:57:22 +02:00
|
|
|
on(event: 'stateChanged', callback: (params: DebugControllerStateChangedEvent) => void): this;
|
2022-10-25 18:55:20 +02:00
|
|
|
on(event: 'sourceChanged', callback: (params: DebugControllerSourceChangedEvent) => void): this;
|
2022-11-10 21:15:29 +01:00
|
|
|
on(event: 'paused', callback: (params: DebugControllerPausedEvent) => void): this;
|
2022-09-22 00:35:52 +02:00
|
|
|
on(event: 'browsersChanged', callback: (params: DebugControllerBrowsersChangedEvent) => void): this;
|
2022-09-16 00:53:18 +02:00
|
|
|
}
|
2022-09-22 00:35:52 +02:00
|
|
|
export interface DebugControllerChannel extends DebugControllerEventTarget, Channel {
|
|
|
|
|
_type_DebugController: boolean;
|
2023-02-23 23:37:53 +01:00
|
|
|
initialize(params: DebugControllerInitializeParams, metadata?: CallMetadata): Promise<DebugControllerInitializeResult>;
|
|
|
|
|
setReportStateChanged(params: DebugControllerSetReportStateChangedParams, metadata?: CallMetadata): Promise<DebugControllerSetReportStateChangedResult>;
|
|
|
|
|
resetForReuse(params?: DebugControllerResetForReuseParams, metadata?: CallMetadata): Promise<DebugControllerResetForReuseResult>;
|
|
|
|
|
navigate(params: DebugControllerNavigateParams, metadata?: CallMetadata): Promise<DebugControllerNavigateResult>;
|
|
|
|
|
setRecorderMode(params: DebugControllerSetRecorderModeParams, metadata?: CallMetadata): Promise<DebugControllerSetRecorderModeResult>;
|
|
|
|
|
highlight(params: DebugControllerHighlightParams, metadata?: CallMetadata): Promise<DebugControllerHighlightResult>;
|
|
|
|
|
hideHighlight(params?: DebugControllerHideHighlightParams, metadata?: CallMetadata): Promise<DebugControllerHideHighlightResult>;
|
|
|
|
|
resume(params?: DebugControllerResumeParams, metadata?: CallMetadata): Promise<DebugControllerResumeResult>;
|
|
|
|
|
kill(params?: DebugControllerKillParams, metadata?: CallMetadata): Promise<DebugControllerKillResult>;
|
|
|
|
|
closeAllBrowsers(params?: DebugControllerCloseAllBrowsersParams, metadata?: CallMetadata): Promise<DebugControllerCloseAllBrowsersResult>;
|
2022-09-16 00:53:18 +02:00
|
|
|
}
|
2022-09-22 00:35:52 +02:00
|
|
|
export type DebugControllerInspectRequestedEvent = {
|
2022-09-16 00:53:18 +02:00
|
|
|
selector: string,
|
2022-10-25 18:55:20 +02:00
|
|
|
locator: string,
|
2022-09-16 00:53:18 +02:00
|
|
|
};
|
2022-10-22 02:57:22 +02:00
|
|
|
export type DebugControllerStateChangedEvent = {
|
|
|
|
|
pageCount: number,
|
|
|
|
|
};
|
2022-10-25 18:55:20 +02:00
|
|
|
export type DebugControllerSourceChangedEvent = {
|
|
|
|
|
text: string,
|
2022-11-02 02:02:14 +01:00
|
|
|
header?: string,
|
|
|
|
|
footer?: string,
|
|
|
|
|
actions?: string[],
|
2022-10-25 18:55:20 +02:00
|
|
|
};
|
2022-11-10 21:15:29 +01:00
|
|
|
export type DebugControllerPausedEvent = {
|
|
|
|
|
paused: boolean,
|
|
|
|
|
};
|
2022-09-22 00:35:52 +02:00
|
|
|
export type DebugControllerBrowsersChangedEvent = {
|
2022-09-16 00:53:18 +02:00
|
|
|
browsers: {
|
|
|
|
|
contexts: {
|
|
|
|
|
pages: string[],
|
|
|
|
|
}[],
|
|
|
|
|
}[],
|
|
|
|
|
};
|
2022-10-25 18:55:20 +02:00
|
|
|
export type DebugControllerInitializeParams = {
|
|
|
|
|
codegenId: string,
|
|
|
|
|
sdkLanguage: 'javascript' | 'python' | 'java' | 'csharp',
|
|
|
|
|
};
|
|
|
|
|
export type DebugControllerInitializeOptions = {
|
|
|
|
|
|
2022-09-20 23:32:21 +02:00
|
|
|
};
|
2022-10-25 18:55:20 +02:00
|
|
|
export type DebugControllerInitializeResult = void;
|
2022-10-22 02:57:22 +02:00
|
|
|
export type DebugControllerSetReportStateChangedParams = {
|
2022-09-16 00:53:18 +02:00
|
|
|
enabled: boolean,
|
|
|
|
|
};
|
2022-10-22 02:57:22 +02:00
|
|
|
export type DebugControllerSetReportStateChangedOptions = {
|
2022-09-16 00:53:18 +02:00
|
|
|
|
|
|
|
|
};
|
2022-10-22 02:57:22 +02:00
|
|
|
export type DebugControllerSetReportStateChangedResult = void;
|
2022-09-22 00:35:52 +02:00
|
|
|
export type DebugControllerResetForReuseParams = {};
|
|
|
|
|
export type DebugControllerResetForReuseOptions = {};
|
|
|
|
|
export type DebugControllerResetForReuseResult = void;
|
2022-10-25 01:19:58 +02:00
|
|
|
export type DebugControllerNavigateParams = {
|
2022-09-16 00:53:18 +02:00
|
|
|
url: string,
|
|
|
|
|
};
|
2022-10-25 01:19:58 +02:00
|
|
|
export type DebugControllerNavigateOptions = {
|
2022-09-16 00:53:18 +02:00
|
|
|
|
|
|
|
|
};
|
2022-10-25 01:19:58 +02:00
|
|
|
export type DebugControllerNavigateResult = void;
|
2022-09-22 00:35:52 +02:00
|
|
|
export type DebugControllerSetRecorderModeParams = {
|
2022-09-16 00:53:18 +02:00
|
|
|
mode: 'inspecting' | 'recording' | 'none',
|
2022-11-08 21:04:43 +01:00
|
|
|
testIdAttributeName?: string,
|
2022-09-16 00:53:18 +02:00
|
|
|
};
|
2022-09-22 00:35:52 +02:00
|
|
|
export type DebugControllerSetRecorderModeOptions = {
|
2022-11-08 21:04:43 +01:00
|
|
|
testIdAttributeName?: string,
|
2022-09-16 00:53:18 +02:00
|
|
|
};
|
2022-09-22 00:35:52 +02:00
|
|
|
export type DebugControllerSetRecorderModeResult = void;
|
2022-10-25 01:19:58 +02:00
|
|
|
export type DebugControllerHighlightParams = {
|
2022-09-16 00:53:18 +02:00
|
|
|
selector: string,
|
|
|
|
|
};
|
2022-10-25 01:19:58 +02:00
|
|
|
export type DebugControllerHighlightOptions = {
|
2022-09-16 00:53:18 +02:00
|
|
|
|
|
|
|
|
};
|
2022-10-25 01:19:58 +02:00
|
|
|
export type DebugControllerHighlightResult = void;
|
|
|
|
|
export type DebugControllerHideHighlightParams = {};
|
|
|
|
|
export type DebugControllerHideHighlightOptions = {};
|
|
|
|
|
export type DebugControllerHideHighlightResult = void;
|
2022-11-10 21:15:29 +01:00
|
|
|
export type DebugControllerResumeParams = {};
|
|
|
|
|
export type DebugControllerResumeOptions = {};
|
|
|
|
|
export type DebugControllerResumeResult = void;
|
2022-09-22 00:35:52 +02:00
|
|
|
export type DebugControllerKillParams = {};
|
|
|
|
|
export type DebugControllerKillOptions = {};
|
|
|
|
|
export type DebugControllerKillResult = void;
|
|
|
|
|
export type DebugControllerCloseAllBrowsersParams = {};
|
|
|
|
|
export type DebugControllerCloseAllBrowsersOptions = {};
|
|
|
|
|
export type DebugControllerCloseAllBrowsersResult = void;
|
2022-09-16 00:53:18 +02:00
|
|
|
|
2022-09-22 00:35:52 +02:00
|
|
|
export interface DebugControllerEvents {
|
|
|
|
|
'inspectRequested': DebugControllerInspectRequestedEvent;
|
2022-10-22 02:57:22 +02:00
|
|
|
'stateChanged': DebugControllerStateChangedEvent;
|
2022-10-25 18:55:20 +02:00
|
|
|
'sourceChanged': DebugControllerSourceChangedEvent;
|
2022-11-10 21:15:29 +01:00
|
|
|
'paused': DebugControllerPausedEvent;
|
2022-09-22 00:35:52 +02:00
|
|
|
'browsersChanged': DebugControllerBrowsersChangedEvent;
|
2022-09-16 00:53:18 +02:00
|
|
|
}
|
|
|
|
|
|
2022-02-13 23:03:47 +01:00
|
|
|
// ----------- SocksSupport -----------
|
|
|
|
|
export type SocksSupportInitializer = {};
|
|
|
|
|
export interface SocksSupportEventTarget {
|
|
|
|
|
on(event: 'socksRequested', callback: (params: SocksSupportSocksRequestedEvent) => void): this;
|
|
|
|
|
on(event: 'socksData', callback: (params: SocksSupportSocksDataEvent) => void): this;
|
|
|
|
|
on(event: 'socksClosed', callback: (params: SocksSupportSocksClosedEvent) => void): this;
|
|
|
|
|
}
|
|
|
|
|
export interface SocksSupportChannel extends SocksSupportEventTarget, Channel {
|
|
|
|
|
_type_SocksSupport: boolean;
|
2023-02-23 23:37:53 +01:00
|
|
|
socksConnected(params: SocksSupportSocksConnectedParams, metadata?: CallMetadata): Promise<SocksSupportSocksConnectedResult>;
|
|
|
|
|
socksFailed(params: SocksSupportSocksFailedParams, metadata?: CallMetadata): Promise<SocksSupportSocksFailedResult>;
|
|
|
|
|
socksData(params: SocksSupportSocksDataParams, metadata?: CallMetadata): Promise<SocksSupportSocksDataResult>;
|
|
|
|
|
socksError(params: SocksSupportSocksErrorParams, metadata?: CallMetadata): Promise<SocksSupportSocksErrorResult>;
|
|
|
|
|
socksEnd(params: SocksSupportSocksEndParams, metadata?: CallMetadata): Promise<SocksSupportSocksEndResult>;
|
2022-02-13 23:03:47 +01:00
|
|
|
}
|
|
|
|
|
export type SocksSupportSocksRequestedEvent = {
|
|
|
|
|
uid: string,
|
|
|
|
|
host: string,
|
|
|
|
|
port: number,
|
|
|
|
|
};
|
|
|
|
|
export type SocksSupportSocksDataEvent = {
|
|
|
|
|
uid: string,
|
|
|
|
|
data: Binary,
|
|
|
|
|
};
|
|
|
|
|
export type SocksSupportSocksClosedEvent = {
|
|
|
|
|
uid: string,
|
|
|
|
|
};
|
|
|
|
|
export type SocksSupportSocksConnectedParams = {
|
|
|
|
|
uid: string,
|
|
|
|
|
host: string,
|
|
|
|
|
port: number,
|
|
|
|
|
};
|
|
|
|
|
export type SocksSupportSocksConnectedOptions = {
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
export type SocksSupportSocksConnectedResult = void;
|
|
|
|
|
export type SocksSupportSocksFailedParams = {
|
|
|
|
|
uid: string,
|
|
|
|
|
errorCode: string,
|
|
|
|
|
};
|
|
|
|
|
export type SocksSupportSocksFailedOptions = {
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
export type SocksSupportSocksFailedResult = void;
|
|
|
|
|
export type SocksSupportSocksDataParams = {
|
|
|
|
|
uid: string,
|
|
|
|
|
data: Binary,
|
|
|
|
|
};
|
|
|
|
|
export type SocksSupportSocksDataOptions = {
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
export type SocksSupportSocksDataResult = void;
|
|
|
|
|
export type SocksSupportSocksErrorParams = {
|
|
|
|
|
uid: string,
|
|
|
|
|
error: string,
|
|
|
|
|
};
|
|
|
|
|
export type SocksSupportSocksErrorOptions = {
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
export type SocksSupportSocksErrorResult = void;
|
|
|
|
|
export type SocksSupportSocksEndParams = {
|
|
|
|
|
uid: string,
|
|
|
|
|
};
|
|
|
|
|
export type SocksSupportSocksEndOptions = {
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
export type SocksSupportSocksEndResult = void;
|
|
|
|
|
|
|
|
|
|
export interface SocksSupportEvents {
|
|
|
|
|
'socksRequested': SocksSupportSocksRequestedEvent;
|
|
|
|
|
'socksData': SocksSupportSocksDataEvent;
|
|
|
|
|
'socksClosed': SocksSupportSocksClosedEvent;
|
2021-08-30 18:43:18 +02:00
|
|
|
}
|
|
|
|
|
|
2020-07-21 02:38:06 +02:00
|
|
|
// ----------- Selectors -----------
|
|
|
|
|
export type SelectorsInitializer = {};
|
2021-11-18 00:26:01 +01:00
|
|
|
export interface SelectorsEventTarget {
|
|
|
|
|
}
|
|
|
|
|
export interface SelectorsChannel extends SelectorsEventTarget, Channel {
|
|
|
|
|
_type_Selectors: boolean;
|
2023-02-23 23:37:53 +01:00
|
|
|
register(params: SelectorsRegisterParams, metadata?: CallMetadata): Promise<SelectorsRegisterResult>;
|
|
|
|
|
setTestIdAttributeName(params: SelectorsSetTestIdAttributeNameParams, metadata?: CallMetadata): Promise<SelectorsSetTestIdAttributeNameResult>;
|
2020-07-14 02:47:15 +02:00
|
|
|
}
|
2020-07-21 02:38:06 +02:00
|
|
|
export type SelectorsRegisterParams = {
|
|
|
|
|
name: string,
|
|
|
|
|
source: string,
|
2020-07-21 23:41:33 +02:00
|
|
|
contentScript?: boolean,
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type SelectorsRegisterOptions = {
|
|
|
|
|
contentScript?: boolean,
|
|
|
|
|
};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type SelectorsRegisterResult = void;
|
2022-11-08 21:04:43 +01:00
|
|
|
export type SelectorsSetTestIdAttributeNameParams = {
|
|
|
|
|
testIdAttributeName: string,
|
|
|
|
|
};
|
|
|
|
|
export type SelectorsSetTestIdAttributeNameOptions = {
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
export type SelectorsSetTestIdAttributeNameResult = void;
|
2020-07-14 02:47:15 +02:00
|
|
|
|
2021-08-30 18:43:18 +02:00
|
|
|
export interface SelectorsEvents {
|
|
|
|
|
}
|
|
|
|
|
|
2020-07-21 02:38:06 +02:00
|
|
|
// ----------- BrowserType -----------
|
2020-06-26 21:28:27 +02:00
|
|
|
export type BrowserTypeInitializer = {
|
|
|
|
|
executablePath: string,
|
2020-07-21 02:38:06 +02:00
|
|
|
name: string,
|
2020-06-26 21:28:27 +02:00
|
|
|
};
|
2021-11-18 00:26:01 +01:00
|
|
|
export interface BrowserTypeEventTarget {
|
|
|
|
|
}
|
|
|
|
|
export interface BrowserTypeChannel extends BrowserTypeEventTarget, Channel {
|
|
|
|
|
_type_BrowserType: boolean;
|
2023-02-23 23:37:53 +01:00
|
|
|
launch(params: BrowserTypeLaunchParams, metadata?: CallMetadata): Promise<BrowserTypeLaunchResult>;
|
|
|
|
|
launchPersistentContext(params: BrowserTypeLaunchPersistentContextParams, metadata?: CallMetadata): Promise<BrowserTypeLaunchPersistentContextResult>;
|
|
|
|
|
connectOverCDP(params: BrowserTypeConnectOverCDPParams, metadata?: CallMetadata): Promise<BrowserTypeConnectOverCDPResult>;
|
2020-06-30 19:55:11 +02:00
|
|
|
}
|
2020-07-21 02:38:06 +02:00
|
|
|
export type BrowserTypeLaunchParams = {
|
2021-05-25 23:33:27 +02:00
|
|
|
channel?: string,
|
2020-07-21 02:38:06 +02:00
|
|
|
executablePath?: string,
|
|
|
|
|
args?: string[],
|
|
|
|
|
ignoreAllDefaultArgs?: boolean,
|
|
|
|
|
ignoreDefaultArgs?: string[],
|
|
|
|
|
handleSIGINT?: boolean,
|
|
|
|
|
handleSIGTERM?: boolean,
|
|
|
|
|
handleSIGHUP?: boolean,
|
|
|
|
|
timeout?: number,
|
2020-11-13 23:24:53 +01:00
|
|
|
env?: NameValue[],
|
2020-07-21 02:38:06 +02:00
|
|
|
headless?: boolean,
|
|
|
|
|
devtools?: boolean,
|
|
|
|
|
proxy?: {
|
|
|
|
|
server: string,
|
|
|
|
|
bypass?: string,
|
|
|
|
|
username?: string,
|
|
|
|
|
password?: string,
|
|
|
|
|
},
|
|
|
|
|
downloadsPath?: string,
|
2021-06-03 07:00:34 +02:00
|
|
|
tracesDir?: string,
|
2020-07-31 18:31:55 +02:00
|
|
|
chromiumSandbox?: boolean,
|
2021-03-24 14:37:10 +01:00
|
|
|
firefoxUserPrefs?: any,
|
2020-07-21 02:38:06 +02:00
|
|
|
slowMo?: number,
|
|
|
|
|
};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type BrowserTypeLaunchOptions = {
|
2021-05-25 23:33:27 +02:00
|
|
|
channel?: string,
|
2020-07-30 02:26:59 +02:00
|
|
|
executablePath?: string,
|
|
|
|
|
args?: string[],
|
|
|
|
|
ignoreAllDefaultArgs?: boolean,
|
|
|
|
|
ignoreDefaultArgs?: string[],
|
|
|
|
|
handleSIGINT?: boolean,
|
|
|
|
|
handleSIGTERM?: boolean,
|
|
|
|
|
handleSIGHUP?: boolean,
|
|
|
|
|
timeout?: number,
|
2020-11-13 23:24:53 +01:00
|
|
|
env?: NameValue[],
|
2020-07-30 02:26:59 +02:00
|
|
|
headless?: boolean,
|
|
|
|
|
devtools?: boolean,
|
|
|
|
|
proxy?: {
|
|
|
|
|
server: string,
|
|
|
|
|
bypass?: string,
|
|
|
|
|
username?: string,
|
|
|
|
|
password?: string,
|
|
|
|
|
},
|
|
|
|
|
downloadsPath?: string,
|
2021-06-03 07:00:34 +02:00
|
|
|
tracesDir?: string,
|
2020-07-31 18:31:55 +02:00
|
|
|
chromiumSandbox?: boolean,
|
2021-03-24 14:37:10 +01:00
|
|
|
firefoxUserPrefs?: any,
|
2020-07-30 02:26:59 +02:00
|
|
|
slowMo?: number,
|
|
|
|
|
};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type BrowserTypeLaunchResult = {
|
|
|
|
|
browser: BrowserChannel,
|
|
|
|
|
};
|
|
|
|
|
export type BrowserTypeLaunchPersistentContextParams = {
|
2021-05-25 23:33:27 +02:00
|
|
|
channel?: string,
|
2020-07-21 02:38:06 +02:00
|
|
|
executablePath?: string,
|
|
|
|
|
args?: string[],
|
|
|
|
|
ignoreAllDefaultArgs?: boolean,
|
|
|
|
|
ignoreDefaultArgs?: string[],
|
|
|
|
|
handleSIGINT?: boolean,
|
|
|
|
|
handleSIGTERM?: boolean,
|
|
|
|
|
handleSIGHUP?: boolean,
|
|
|
|
|
timeout?: number,
|
2020-11-13 23:24:53 +01:00
|
|
|
env?: NameValue[],
|
2020-07-21 02:38:06 +02:00
|
|
|
headless?: boolean,
|
|
|
|
|
devtools?: boolean,
|
|
|
|
|
proxy?: {
|
|
|
|
|
server: string,
|
|
|
|
|
bypass?: string,
|
|
|
|
|
username?: string,
|
|
|
|
|
password?: string,
|
|
|
|
|
},
|
|
|
|
|
downloadsPath?: string,
|
2021-06-03 07:00:34 +02:00
|
|
|
tracesDir?: string,
|
2020-07-31 18:31:55 +02:00
|
|
|
chromiumSandbox?: boolean,
|
2020-07-21 17:26:48 +02:00
|
|
|
noDefaultViewport?: boolean,
|
|
|
|
|
viewport?: {
|
|
|
|
|
width: number,
|
|
|
|
|
height: number,
|
|
|
|
|
},
|
2021-03-29 23:10:58 +02:00
|
|
|
screen?: {
|
|
|
|
|
width: number,
|
|
|
|
|
height: number,
|
|
|
|
|
},
|
2020-07-21 02:38:06 +02:00
|
|
|
ignoreHTTPSErrors?: boolean,
|
|
|
|
|
javaScriptEnabled?: boolean,
|
|
|
|
|
bypassCSP?: boolean,
|
|
|
|
|
userAgent?: string,
|
|
|
|
|
locale?: string,
|
|
|
|
|
timezoneId?: string,
|
|
|
|
|
geolocation?: {
|
|
|
|
|
longitude: number,
|
|
|
|
|
latitude: number,
|
|
|
|
|
accuracy?: number,
|
|
|
|
|
},
|
|
|
|
|
permissions?: string[],
|
2020-11-13 23:24:53 +01:00
|
|
|
extraHTTPHeaders?: NameValue[],
|
2020-07-21 02:38:06 +02:00
|
|
|
offline?: boolean,
|
|
|
|
|
httpCredentials?: {
|
|
|
|
|
username: string,
|
|
|
|
|
password: string,
|
2023-03-27 17:52:00 +02:00
|
|
|
origin?: string,
|
2020-07-21 02:38:06 +02:00
|
|
|
},
|
|
|
|
|
deviceScaleFactor?: number,
|
|
|
|
|
isMobile?: boolean,
|
|
|
|
|
hasTouch?: boolean,
|
2022-10-31 17:09:52 +01:00
|
|
|
colorScheme?: 'dark' | 'light' | 'no-preference' | 'no-override',
|
|
|
|
|
reducedMotion?: 'reduce' | 'no-preference' | 'no-override',
|
|
|
|
|
forcedColors?: 'active' | 'none' | 'no-override',
|
2020-07-21 02:38:06 +02:00
|
|
|
acceptDownloads?: boolean,
|
2021-07-06 21:16:37 +02:00
|
|
|
baseURL?: string,
|
2020-11-03 04:42:05 +01:00
|
|
|
recordVideo?: {
|
|
|
|
|
dir: string,
|
|
|
|
|
size?: {
|
|
|
|
|
width: number,
|
|
|
|
|
height: number,
|
|
|
|
|
},
|
2020-10-01 20:06:19 +02:00
|
|
|
},
|
2022-06-08 03:09:47 +02:00
|
|
|
recordHar?: RecordHarOptions,
|
2021-08-18 21:51:45 +02:00
|
|
|
strictSelectors?: boolean,
|
2022-06-09 00:27:51 +02:00
|
|
|
serviceWorkers?: 'allow' | 'block',
|
2021-03-24 14:37:10 +01:00
|
|
|
userDataDir: string,
|
|
|
|
|
slowMo?: number,
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type BrowserTypeLaunchPersistentContextOptions = {
|
2021-05-25 23:33:27 +02:00
|
|
|
channel?: string,
|
2020-07-30 02:26:59 +02:00
|
|
|
executablePath?: string,
|
|
|
|
|
args?: string[],
|
|
|
|
|
ignoreAllDefaultArgs?: boolean,
|
|
|
|
|
ignoreDefaultArgs?: string[],
|
|
|
|
|
handleSIGINT?: boolean,
|
|
|
|
|
handleSIGTERM?: boolean,
|
|
|
|
|
handleSIGHUP?: boolean,
|
|
|
|
|
timeout?: number,
|
2020-11-13 23:24:53 +01:00
|
|
|
env?: NameValue[],
|
2020-07-30 02:26:59 +02:00
|
|
|
headless?: boolean,
|
|
|
|
|
devtools?: boolean,
|
|
|
|
|
proxy?: {
|
|
|
|
|
server: string,
|
|
|
|
|
bypass?: string,
|
|
|
|
|
username?: string,
|
|
|
|
|
password?: string,
|
|
|
|
|
},
|
|
|
|
|
downloadsPath?: string,
|
2021-06-03 07:00:34 +02:00
|
|
|
tracesDir?: string,
|
2020-07-31 18:31:55 +02:00
|
|
|
chromiumSandbox?: boolean,
|
2020-07-30 02:26:59 +02:00
|
|
|
noDefaultViewport?: boolean,
|
|
|
|
|
viewport?: {
|
|
|
|
|
width: number,
|
|
|
|
|
height: number,
|
|
|
|
|
},
|
2021-03-29 23:10:58 +02:00
|
|
|
screen?: {
|
|
|
|
|
width: number,
|
|
|
|
|
height: number,
|
|
|
|
|
},
|
2020-07-30 02:26:59 +02:00
|
|
|
ignoreHTTPSErrors?: boolean,
|
|
|
|
|
javaScriptEnabled?: boolean,
|
|
|
|
|
bypassCSP?: boolean,
|
|
|
|
|
userAgent?: string,
|
|
|
|
|
locale?: string,
|
|
|
|
|
timezoneId?: string,
|
|
|
|
|
geolocation?: {
|
|
|
|
|
longitude: number,
|
|
|
|
|
latitude: number,
|
|
|
|
|
accuracy?: number,
|
|
|
|
|
},
|
|
|
|
|
permissions?: string[],
|
2020-11-13 23:24:53 +01:00
|
|
|
extraHTTPHeaders?: NameValue[],
|
2020-07-30 02:26:59 +02:00
|
|
|
offline?: boolean,
|
|
|
|
|
httpCredentials?: {
|
|
|
|
|
username: string,
|
|
|
|
|
password: string,
|
2023-03-27 17:52:00 +02:00
|
|
|
origin?: string,
|
2020-07-30 02:26:59 +02:00
|
|
|
},
|
|
|
|
|
deviceScaleFactor?: number,
|
|
|
|
|
isMobile?: boolean,
|
|
|
|
|
hasTouch?: boolean,
|
2022-10-31 17:09:52 +01:00
|
|
|
colorScheme?: 'dark' | 'light' | 'no-preference' | 'no-override',
|
|
|
|
|
reducedMotion?: 'reduce' | 'no-preference' | 'no-override',
|
|
|
|
|
forcedColors?: 'active' | 'none' | 'no-override',
|
2020-07-30 02:26:59 +02:00
|
|
|
acceptDownloads?: boolean,
|
2021-07-06 21:16:37 +02:00
|
|
|
baseURL?: string,
|
2020-11-03 04:42:05 +01:00
|
|
|
recordVideo?: {
|
|
|
|
|
dir: string,
|
|
|
|
|
size?: {
|
|
|
|
|
width: number,
|
|
|
|
|
height: number,
|
|
|
|
|
},
|
2020-10-01 20:06:19 +02:00
|
|
|
},
|
2022-06-08 03:09:47 +02:00
|
|
|
recordHar?: RecordHarOptions,
|
2021-08-18 21:51:45 +02:00
|
|
|
strictSelectors?: boolean,
|
2022-06-09 00:27:51 +02:00
|
|
|
serviceWorkers?: 'allow' | 'block',
|
2021-03-24 14:37:10 +01:00
|
|
|
slowMo?: number,
|
2020-07-30 02:26:59 +02:00
|
|
|
};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type BrowserTypeLaunchPersistentContextResult = {
|
|
|
|
|
context: BrowserContextChannel,
|
2020-06-30 19:55:11 +02:00
|
|
|
};
|
2021-02-10 23:00:02 +01:00
|
|
|
export type BrowserTypeConnectOverCDPParams = {
|
2021-04-08 23:55:28 +02:00
|
|
|
endpointURL: string,
|
2021-04-23 23:52:27 +02:00
|
|
|
headers?: NameValue[],
|
2021-02-10 23:00:02 +01:00
|
|
|
slowMo?: number,
|
|
|
|
|
timeout?: number,
|
|
|
|
|
};
|
|
|
|
|
export type BrowserTypeConnectOverCDPOptions = {
|
2021-04-23 23:52:27 +02:00
|
|
|
headers?: NameValue[],
|
2021-02-10 23:00:02 +01:00
|
|
|
slowMo?: number,
|
|
|
|
|
timeout?: number,
|
|
|
|
|
};
|
|
|
|
|
export type BrowserTypeConnectOverCDPResult = {
|
|
|
|
|
browser: BrowserChannel,
|
|
|
|
|
defaultContext?: BrowserContextChannel,
|
|
|
|
|
};
|
2020-06-30 19:55:11 +02:00
|
|
|
|
2021-08-30 18:43:18 +02:00
|
|
|
export interface BrowserTypeEvents {
|
|
|
|
|
}
|
|
|
|
|
|
2020-07-21 02:38:06 +02:00
|
|
|
// ----------- Browser -----------
|
2020-07-27 22:41:35 +02:00
|
|
|
export type BrowserInitializer = {
|
|
|
|
|
version: string,
|
2020-08-28 19:23:02 +02:00
|
|
|
name: string,
|
2020-07-27 22:41:35 +02:00
|
|
|
};
|
2021-11-18 00:26:01 +01:00
|
|
|
export interface BrowserEventTarget {
|
2020-07-21 02:38:06 +02:00
|
|
|
on(event: 'close', callback: (params: BrowserCloseEvent) => void): this;
|
2021-11-18 00:26:01 +01:00
|
|
|
}
|
|
|
|
|
export interface BrowserChannel extends BrowserEventTarget, Channel {
|
|
|
|
|
_type_Browser: boolean;
|
2023-02-23 23:37:53 +01:00
|
|
|
close(params?: BrowserCloseParams, metadata?: CallMetadata): Promise<BrowserCloseResult>;
|
|
|
|
|
killForTests(params?: BrowserKillForTestsParams, metadata?: CallMetadata): Promise<BrowserKillForTestsResult>;
|
|
|
|
|
newContext(params: BrowserNewContextParams, metadata?: CallMetadata): Promise<BrowserNewContextResult>;
|
|
|
|
|
newContextForReuse(params: BrowserNewContextForReuseParams, metadata?: CallMetadata): Promise<BrowserNewContextForReuseResult>;
|
|
|
|
|
newBrowserCDPSession(params?: BrowserNewBrowserCDPSessionParams, metadata?: CallMetadata): Promise<BrowserNewBrowserCDPSessionResult>;
|
|
|
|
|
startTracing(params: BrowserStartTracingParams, metadata?: CallMetadata): Promise<BrowserStartTracingResult>;
|
|
|
|
|
stopTracing(params?: BrowserStopTracingParams, metadata?: CallMetadata): Promise<BrowserStopTracingResult>;
|
2020-06-26 01:05:36 +02:00
|
|
|
}
|
2020-07-21 02:38:06 +02:00
|
|
|
export type BrowserCloseEvent = {};
|
|
|
|
|
export type BrowserCloseParams = {};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type BrowserCloseOptions = {};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type BrowserCloseResult = void;
|
2021-04-09 03:56:09 +02:00
|
|
|
export type BrowserKillForTestsParams = {};
|
|
|
|
|
export type BrowserKillForTestsOptions = {};
|
|
|
|
|
export type BrowserKillForTestsResult = void;
|
2020-07-21 02:38:06 +02:00
|
|
|
export type BrowserNewContextParams = {
|
2020-07-21 17:26:48 +02:00
|
|
|
noDefaultViewport?: boolean,
|
|
|
|
|
viewport?: {
|
|
|
|
|
width: number,
|
|
|
|
|
height: number,
|
|
|
|
|
},
|
2021-03-29 23:10:58 +02:00
|
|
|
screen?: {
|
|
|
|
|
width: number,
|
|
|
|
|
height: number,
|
|
|
|
|
},
|
2020-07-21 02:38:06 +02:00
|
|
|
ignoreHTTPSErrors?: boolean,
|
|
|
|
|
javaScriptEnabled?: boolean,
|
|
|
|
|
bypassCSP?: boolean,
|
|
|
|
|
userAgent?: string,
|
|
|
|
|
locale?: string,
|
|
|
|
|
timezoneId?: string,
|
|
|
|
|
geolocation?: {
|
|
|
|
|
longitude: number,
|
|
|
|
|
latitude: number,
|
|
|
|
|
accuracy?: number,
|
|
|
|
|
},
|
|
|
|
|
permissions?: string[],
|
2020-11-13 23:24:53 +01:00
|
|
|
extraHTTPHeaders?: NameValue[],
|
2020-07-21 02:38:06 +02:00
|
|
|
offline?: boolean,
|
|
|
|
|
httpCredentials?: {
|
|
|
|
|
username: string,
|
|
|
|
|
password: string,
|
2023-03-27 17:52:00 +02:00
|
|
|
origin?: string,
|
2020-07-21 02:38:06 +02:00
|
|
|
},
|
|
|
|
|
deviceScaleFactor?: number,
|
|
|
|
|
isMobile?: boolean,
|
|
|
|
|
hasTouch?: boolean,
|
2022-10-31 17:09:52 +01:00
|
|
|
colorScheme?: 'dark' | 'light' | 'no-preference' | 'no-override',
|
|
|
|
|
reducedMotion?: 'reduce' | 'no-preference' | 'no-override',
|
|
|
|
|
forcedColors?: 'active' | 'none' | 'no-override',
|
2020-07-21 02:38:06 +02:00
|
|
|
acceptDownloads?: boolean,
|
2021-07-06 21:16:37 +02:00
|
|
|
baseURL?: string,
|
2020-11-03 04:42:05 +01:00
|
|
|
recordVideo?: {
|
|
|
|
|
dir: string,
|
|
|
|
|
size?: {
|
|
|
|
|
width: number,
|
|
|
|
|
height: number,
|
|
|
|
|
},
|
2020-09-05 07:37:38 +02:00
|
|
|
},
|
2022-06-08 03:09:47 +02:00
|
|
|
recordHar?: RecordHarOptions,
|
2021-08-18 21:51:45 +02:00
|
|
|
strictSelectors?: boolean,
|
2022-06-09 00:27:51 +02:00
|
|
|
serviceWorkers?: 'allow' | 'block',
|
2020-10-30 00:12:30 +01:00
|
|
|
proxy?: {
|
|
|
|
|
server: string,
|
|
|
|
|
bypass?: string,
|
|
|
|
|
username?: string,
|
|
|
|
|
password?: string,
|
|
|
|
|
},
|
2020-11-13 23:24:53 +01:00
|
|
|
storageState?: {
|
|
|
|
|
cookies?: SetNetworkCookie[],
|
|
|
|
|
origins?: OriginStorage[],
|
|
|
|
|
},
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type BrowserNewContextOptions = {
|
|
|
|
|
noDefaultViewport?: boolean,
|
|
|
|
|
viewport?: {
|
|
|
|
|
width: number,
|
|
|
|
|
height: number,
|
|
|
|
|
},
|
2021-03-29 23:10:58 +02:00
|
|
|
screen?: {
|
|
|
|
|
width: number,
|
|
|
|
|
height: number,
|
|
|
|
|
},
|
2020-07-30 02:26:59 +02:00
|
|
|
ignoreHTTPSErrors?: boolean,
|
|
|
|
|
javaScriptEnabled?: boolean,
|
|
|
|
|
bypassCSP?: boolean,
|
|
|
|
|
userAgent?: string,
|
|
|
|
|
locale?: string,
|
|
|
|
|
timezoneId?: string,
|
|
|
|
|
geolocation?: {
|
|
|
|
|
longitude: number,
|
|
|
|
|
latitude: number,
|
|
|
|
|
accuracy?: number,
|
|
|
|
|
},
|
|
|
|
|
permissions?: string[],
|
2020-11-13 23:24:53 +01:00
|
|
|
extraHTTPHeaders?: NameValue[],
|
2020-07-30 02:26:59 +02:00
|
|
|
offline?: boolean,
|
|
|
|
|
httpCredentials?: {
|
|
|
|
|
username: string,
|
|
|
|
|
password: string,
|
2023-03-27 17:52:00 +02:00
|
|
|
origin?: string,
|
2020-07-30 02:26:59 +02:00
|
|
|
},
|
|
|
|
|
deviceScaleFactor?: number,
|
|
|
|
|
isMobile?: boolean,
|
|
|
|
|
hasTouch?: boolean,
|
2022-10-31 17:09:52 +01:00
|
|
|
colorScheme?: 'dark' | 'light' | 'no-preference' | 'no-override',
|
|
|
|
|
reducedMotion?: 'reduce' | 'no-preference' | 'no-override',
|
|
|
|
|
forcedColors?: 'active' | 'none' | 'no-override',
|
2020-07-30 02:26:59 +02:00
|
|
|
acceptDownloads?: boolean,
|
2021-07-06 21:16:37 +02:00
|
|
|
baseURL?: string,
|
2020-11-03 04:42:05 +01:00
|
|
|
recordVideo?: {
|
|
|
|
|
dir: string,
|
|
|
|
|
size?: {
|
|
|
|
|
width: number,
|
|
|
|
|
height: number,
|
|
|
|
|
},
|
2020-09-05 07:37:38 +02:00
|
|
|
},
|
2022-06-08 03:09:47 +02:00
|
|
|
recordHar?: RecordHarOptions,
|
2021-08-18 21:51:45 +02:00
|
|
|
strictSelectors?: boolean,
|
2022-06-09 00:27:51 +02:00
|
|
|
serviceWorkers?: 'allow' | 'block',
|
2020-10-30 00:12:30 +01:00
|
|
|
proxy?: {
|
|
|
|
|
server: string,
|
|
|
|
|
bypass?: string,
|
|
|
|
|
username?: string,
|
|
|
|
|
password?: string,
|
|
|
|
|
},
|
2020-11-13 23:24:53 +01:00
|
|
|
storageState?: {
|
|
|
|
|
cookies?: SetNetworkCookie[],
|
|
|
|
|
origins?: OriginStorage[],
|
|
|
|
|
},
|
2020-07-30 02:26:59 +02:00
|
|
|
};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type BrowserNewContextResult = {
|
|
|
|
|
context: BrowserContextChannel,
|
|
|
|
|
};
|
2022-07-11 22:10:08 +02:00
|
|
|
export type BrowserNewContextForReuseParams = {
|
|
|
|
|
noDefaultViewport?: boolean,
|
|
|
|
|
viewport?: {
|
|
|
|
|
width: number,
|
|
|
|
|
height: number,
|
|
|
|
|
},
|
|
|
|
|
screen?: {
|
|
|
|
|
width: number,
|
|
|
|
|
height: number,
|
|
|
|
|
},
|
|
|
|
|
ignoreHTTPSErrors?: boolean,
|
|
|
|
|
javaScriptEnabled?: boolean,
|
|
|
|
|
bypassCSP?: boolean,
|
|
|
|
|
userAgent?: string,
|
|
|
|
|
locale?: string,
|
|
|
|
|
timezoneId?: string,
|
|
|
|
|
geolocation?: {
|
|
|
|
|
longitude: number,
|
|
|
|
|
latitude: number,
|
|
|
|
|
accuracy?: number,
|
|
|
|
|
},
|
|
|
|
|
permissions?: string[],
|
|
|
|
|
extraHTTPHeaders?: NameValue[],
|
|
|
|
|
offline?: boolean,
|
|
|
|
|
httpCredentials?: {
|
|
|
|
|
username: string,
|
|
|
|
|
password: string,
|
2023-03-27 17:52:00 +02:00
|
|
|
origin?: string,
|
2022-07-11 22:10:08 +02:00
|
|
|
},
|
|
|
|
|
deviceScaleFactor?: number,
|
|
|
|
|
isMobile?: boolean,
|
|
|
|
|
hasTouch?: boolean,
|
2022-10-31 17:09:52 +01:00
|
|
|
colorScheme?: 'dark' | 'light' | 'no-preference' | 'no-override',
|
|
|
|
|
reducedMotion?: 'reduce' | 'no-preference' | 'no-override',
|
|
|
|
|
forcedColors?: 'active' | 'none' | 'no-override',
|
2022-07-11 22:10:08 +02:00
|
|
|
acceptDownloads?: boolean,
|
|
|
|
|
baseURL?: string,
|
|
|
|
|
recordVideo?: {
|
|
|
|
|
dir: string,
|
|
|
|
|
size?: {
|
|
|
|
|
width: number,
|
|
|
|
|
height: number,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
recordHar?: RecordHarOptions,
|
|
|
|
|
strictSelectors?: boolean,
|
|
|
|
|
serviceWorkers?: 'allow' | 'block',
|
|
|
|
|
proxy?: {
|
|
|
|
|
server: string,
|
|
|
|
|
bypass?: string,
|
|
|
|
|
username?: string,
|
|
|
|
|
password?: string,
|
|
|
|
|
},
|
|
|
|
|
storageState?: {
|
|
|
|
|
cookies?: SetNetworkCookie[],
|
|
|
|
|
origins?: OriginStorage[],
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
export type BrowserNewContextForReuseOptions = {
|
|
|
|
|
noDefaultViewport?: boolean,
|
|
|
|
|
viewport?: {
|
|
|
|
|
width: number,
|
|
|
|
|
height: number,
|
|
|
|
|
},
|
|
|
|
|
screen?: {
|
|
|
|
|
width: number,
|
|
|
|
|
height: number,
|
|
|
|
|
},
|
|
|
|
|
ignoreHTTPSErrors?: boolean,
|
|
|
|
|
javaScriptEnabled?: boolean,
|
|
|
|
|
bypassCSP?: boolean,
|
|
|
|
|
userAgent?: string,
|
|
|
|
|
locale?: string,
|
|
|
|
|
timezoneId?: string,
|
|
|
|
|
geolocation?: {
|
|
|
|
|
longitude: number,
|
|
|
|
|
latitude: number,
|
|
|
|
|
accuracy?: number,
|
|
|
|
|
},
|
|
|
|
|
permissions?: string[],
|
|
|
|
|
extraHTTPHeaders?: NameValue[],
|
|
|
|
|
offline?: boolean,
|
|
|
|
|
httpCredentials?: {
|
|
|
|
|
username: string,
|
|
|
|
|
password: string,
|
2023-03-27 17:52:00 +02:00
|
|
|
origin?: string,
|
2022-07-11 22:10:08 +02:00
|
|
|
},
|
|
|
|
|
deviceScaleFactor?: number,
|
|
|
|
|
isMobile?: boolean,
|
|
|
|
|
hasTouch?: boolean,
|
2022-10-31 17:09:52 +01:00
|
|
|
colorScheme?: 'dark' | 'light' | 'no-preference' | 'no-override',
|
|
|
|
|
reducedMotion?: 'reduce' | 'no-preference' | 'no-override',
|
|
|
|
|
forcedColors?: 'active' | 'none' | 'no-override',
|
2022-07-11 22:10:08 +02:00
|
|
|
acceptDownloads?: boolean,
|
|
|
|
|
baseURL?: string,
|
|
|
|
|
recordVideo?: {
|
|
|
|
|
dir: string,
|
|
|
|
|
size?: {
|
|
|
|
|
width: number,
|
|
|
|
|
height: number,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
recordHar?: RecordHarOptions,
|
|
|
|
|
strictSelectors?: boolean,
|
|
|
|
|
serviceWorkers?: 'allow' | 'block',
|
|
|
|
|
proxy?: {
|
|
|
|
|
server: string,
|
|
|
|
|
bypass?: string,
|
|
|
|
|
username?: string,
|
|
|
|
|
password?: string,
|
|
|
|
|
},
|
|
|
|
|
storageState?: {
|
|
|
|
|
cookies?: SetNetworkCookie[],
|
|
|
|
|
origins?: OriginStorage[],
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
export type BrowserNewContextForReuseResult = {
|
|
|
|
|
context: BrowserContextChannel,
|
|
|
|
|
};
|
2021-04-02 03:47:14 +02:00
|
|
|
export type BrowserNewBrowserCDPSessionParams = {};
|
|
|
|
|
export type BrowserNewBrowserCDPSessionOptions = {};
|
|
|
|
|
export type BrowserNewBrowserCDPSessionResult = {
|
2020-07-21 02:38:06 +02:00
|
|
|
session: CDPSessionChannel,
|
|
|
|
|
};
|
2021-04-02 03:47:14 +02:00
|
|
|
export type BrowserStartTracingParams = {
|
2020-07-21 02:38:06 +02:00
|
|
|
page?: PageChannel,
|
|
|
|
|
path?: string,
|
|
|
|
|
screenshots?: boolean,
|
|
|
|
|
categories?: string[],
|
|
|
|
|
};
|
2021-04-02 03:47:14 +02:00
|
|
|
export type BrowserStartTracingOptions = {
|
2020-07-30 02:26:59 +02:00
|
|
|
page?: PageChannel,
|
|
|
|
|
path?: string,
|
|
|
|
|
screenshots?: boolean,
|
|
|
|
|
categories?: string[],
|
|
|
|
|
};
|
2021-04-02 03:47:14 +02:00
|
|
|
export type BrowserStartTracingResult = void;
|
|
|
|
|
export type BrowserStopTracingParams = {};
|
|
|
|
|
export type BrowserStopTracingOptions = {};
|
|
|
|
|
export type BrowserStopTracingResult = {
|
2020-07-21 02:38:06 +02:00
|
|
|
binary: Binary,
|
|
|
|
|
};
|
2020-06-27 02:24:21 +02:00
|
|
|
|
2021-08-30 18:43:18 +02:00
|
|
|
export interface BrowserEvents {
|
|
|
|
|
'close': BrowserCloseEvent;
|
|
|
|
|
}
|
|
|
|
|
|
2021-07-01 02:56:48 +02:00
|
|
|
// ----------- EventTarget -----------
|
|
|
|
|
export type EventTargetInitializer = {};
|
2021-11-18 00:26:01 +01:00
|
|
|
export interface EventTargetEventTarget {
|
|
|
|
|
}
|
|
|
|
|
export interface EventTargetChannel extends EventTargetEventTarget, Channel {
|
|
|
|
|
_type_EventTarget: boolean;
|
2023-02-23 23:37:53 +01:00
|
|
|
waitForEventInfo(params: EventTargetWaitForEventInfoParams, metadata?: CallMetadata): Promise<EventTargetWaitForEventInfoResult>;
|
2021-07-01 02:56:48 +02:00
|
|
|
}
|
|
|
|
|
export type EventTargetWaitForEventInfoParams = {
|
|
|
|
|
info: {
|
|
|
|
|
waitId: string,
|
|
|
|
|
phase: 'before' | 'after' | 'log',
|
|
|
|
|
event?: string,
|
|
|
|
|
message?: string,
|
|
|
|
|
error?: string,
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
export type EventTargetWaitForEventInfoOptions = {
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
export type EventTargetWaitForEventInfoResult = void;
|
|
|
|
|
|
2021-08-30 18:43:18 +02:00
|
|
|
export interface EventTargetEvents {
|
|
|
|
|
}
|
|
|
|
|
|
2020-07-21 02:38:06 +02:00
|
|
|
// ----------- BrowserContext -----------
|
2020-08-28 19:23:02 +02:00
|
|
|
export type BrowserContextInitializer = {
|
2021-01-13 21:08:14 +01:00
|
|
|
isChromium: boolean,
|
2022-07-15 17:56:47 +02:00
|
|
|
requestContext: APIRequestContextChannel,
|
2022-01-22 20:25:13 +01:00
|
|
|
tracing: TracingChannel,
|
2020-08-28 19:23:02 +02:00
|
|
|
};
|
2021-11-18 00:26:01 +01:00
|
|
|
export interface BrowserContextEventTarget {
|
2020-07-21 02:38:06 +02:00
|
|
|
on(event: 'bindingCall', callback: (params: BrowserContextBindingCallEvent) => void): this;
|
2023-03-28 01:35:05 +02:00
|
|
|
on(event: 'console', callback: (params: BrowserContextConsoleEvent) => void): this;
|
2020-07-21 02:38:06 +02:00
|
|
|
on(event: 'close', callback: (params: BrowserContextCloseEvent) => void): this;
|
2023-03-28 22:15:55 +02:00
|
|
|
on(event: 'dialog', callback: (params: BrowserContextDialogEvent) => void): this;
|
2020-07-21 02:38:06 +02:00
|
|
|
on(event: 'page', callback: (params: BrowserContextPageEvent) => void): this;
|
|
|
|
|
on(event: 'route', callback: (params: BrowserContextRouteEvent) => void): this;
|
2021-03-31 19:38:05 +02:00
|
|
|
on(event: 'video', callback: (params: BrowserContextVideoEvent) => void): this;
|
2021-04-02 03:47:14 +02:00
|
|
|
on(event: 'backgroundPage', callback: (params: BrowserContextBackgroundPageEvent) => void): this;
|
|
|
|
|
on(event: 'serviceWorker', callback: (params: BrowserContextServiceWorkerEvent) => void): this;
|
2021-05-13 19:29:14 +02:00
|
|
|
on(event: 'request', callback: (params: BrowserContextRequestEvent) => void): this;
|
|
|
|
|
on(event: 'requestFailed', callback: (params: BrowserContextRequestFailedEvent) => void): this;
|
|
|
|
|
on(event: 'requestFinished', callback: (params: BrowserContextRequestFinishedEvent) => void): this;
|
|
|
|
|
on(event: 'response', callback: (params: BrowserContextResponseEvent) => void): this;
|
2021-11-18 00:26:01 +01:00
|
|
|
}
|
|
|
|
|
export interface BrowserContextChannel extends BrowserContextEventTarget, EventTargetChannel {
|
|
|
|
|
_type_BrowserContext: boolean;
|
2023-02-23 23:37:53 +01:00
|
|
|
addCookies(params: BrowserContextAddCookiesParams, metadata?: CallMetadata): Promise<BrowserContextAddCookiesResult>;
|
|
|
|
|
addInitScript(params: BrowserContextAddInitScriptParams, metadata?: CallMetadata): Promise<BrowserContextAddInitScriptResult>;
|
|
|
|
|
clearCookies(params?: BrowserContextClearCookiesParams, metadata?: CallMetadata): Promise<BrowserContextClearCookiesResult>;
|
|
|
|
|
clearPermissions(params?: BrowserContextClearPermissionsParams, metadata?: CallMetadata): Promise<BrowserContextClearPermissionsResult>;
|
|
|
|
|
close(params?: BrowserContextCloseParams, metadata?: CallMetadata): Promise<BrowserContextCloseResult>;
|
|
|
|
|
cookies(params: BrowserContextCookiesParams, metadata?: CallMetadata): Promise<BrowserContextCookiesResult>;
|
|
|
|
|
exposeBinding(params: BrowserContextExposeBindingParams, metadata?: CallMetadata): Promise<BrowserContextExposeBindingResult>;
|
|
|
|
|
grantPermissions(params: BrowserContextGrantPermissionsParams, metadata?: CallMetadata): Promise<BrowserContextGrantPermissionsResult>;
|
|
|
|
|
newPage(params?: BrowserContextNewPageParams, metadata?: CallMetadata): Promise<BrowserContextNewPageResult>;
|
|
|
|
|
setDefaultNavigationTimeoutNoReply(params: BrowserContextSetDefaultNavigationTimeoutNoReplyParams, metadata?: CallMetadata): Promise<BrowserContextSetDefaultNavigationTimeoutNoReplyResult>;
|
|
|
|
|
setDefaultTimeoutNoReply(params: BrowserContextSetDefaultTimeoutNoReplyParams, metadata?: CallMetadata): Promise<BrowserContextSetDefaultTimeoutNoReplyResult>;
|
|
|
|
|
setExtraHTTPHeaders(params: BrowserContextSetExtraHTTPHeadersParams, metadata?: CallMetadata): Promise<BrowserContextSetExtraHTTPHeadersResult>;
|
|
|
|
|
setGeolocation(params: BrowserContextSetGeolocationParams, metadata?: CallMetadata): Promise<BrowserContextSetGeolocationResult>;
|
|
|
|
|
setHTTPCredentials(params: BrowserContextSetHTTPCredentialsParams, metadata?: CallMetadata): Promise<BrowserContextSetHTTPCredentialsResult>;
|
|
|
|
|
setNetworkInterceptionPatterns(params: BrowserContextSetNetworkInterceptionPatternsParams, metadata?: CallMetadata): Promise<BrowserContextSetNetworkInterceptionPatternsResult>;
|
|
|
|
|
setOffline(params: BrowserContextSetOfflineParams, metadata?: CallMetadata): Promise<BrowserContextSetOfflineResult>;
|
|
|
|
|
storageState(params?: BrowserContextStorageStateParams, metadata?: CallMetadata): Promise<BrowserContextStorageStateResult>;
|
|
|
|
|
pause(params?: BrowserContextPauseParams, metadata?: CallMetadata): Promise<BrowserContextPauseResult>;
|
|
|
|
|
recorderSupplementEnable(params: BrowserContextRecorderSupplementEnableParams, metadata?: CallMetadata): Promise<BrowserContextRecorderSupplementEnableResult>;
|
|
|
|
|
newCDPSession(params: BrowserContextNewCDPSessionParams, metadata?: CallMetadata): Promise<BrowserContextNewCDPSessionResult>;
|
|
|
|
|
harStart(params: BrowserContextHarStartParams, metadata?: CallMetadata): Promise<BrowserContextHarStartResult>;
|
|
|
|
|
harExport(params: BrowserContextHarExportParams, metadata?: CallMetadata): Promise<BrowserContextHarExportResult>;
|
|
|
|
|
createTempFile(params: BrowserContextCreateTempFileParams, metadata?: CallMetadata): Promise<BrowserContextCreateTempFileResult>;
|
|
|
|
|
updateSubscription(params: BrowserContextUpdateSubscriptionParams, metadata?: CallMetadata): Promise<BrowserContextUpdateSubscriptionResult>;
|
2020-06-26 01:05:36 +02:00
|
|
|
}
|
2020-07-21 02:38:06 +02:00
|
|
|
export type BrowserContextBindingCallEvent = {
|
|
|
|
|
binding: BindingCallChannel,
|
|
|
|
|
};
|
2023-03-28 01:35:05 +02:00
|
|
|
export type BrowserContextConsoleEvent = {
|
|
|
|
|
message: ConsoleMessageChannel,
|
|
|
|
|
};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type BrowserContextCloseEvent = {};
|
2023-03-28 22:15:55 +02:00
|
|
|
export type BrowserContextDialogEvent = {
|
|
|
|
|
dialog: DialogChannel,
|
|
|
|
|
};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type BrowserContextPageEvent = {
|
|
|
|
|
page: PageChannel,
|
|
|
|
|
};
|
|
|
|
|
export type BrowserContextRouteEvent = {
|
|
|
|
|
route: RouteChannel,
|
|
|
|
|
};
|
2021-03-31 19:38:05 +02:00
|
|
|
export type BrowserContextVideoEvent = {
|
|
|
|
|
artifact: ArtifactChannel,
|
|
|
|
|
};
|
2021-04-02 03:47:14 +02:00
|
|
|
export type BrowserContextBackgroundPageEvent = {
|
2020-07-23 04:38:19 +02:00
|
|
|
page: PageChannel,
|
|
|
|
|
};
|
2021-04-02 03:47:14 +02:00
|
|
|
export type BrowserContextServiceWorkerEvent = {
|
2020-07-23 04:38:19 +02:00
|
|
|
worker: WorkerChannel,
|
|
|
|
|
};
|
2021-05-13 19:29:14 +02:00
|
|
|
export type BrowserContextRequestEvent = {
|
|
|
|
|
request: RequestChannel,
|
|
|
|
|
page?: PageChannel,
|
|
|
|
|
};
|
|
|
|
|
export type BrowserContextRequestFailedEvent = {
|
|
|
|
|
request: RequestChannel,
|
|
|
|
|
failureText?: string,
|
|
|
|
|
responseEndTiming: number,
|
|
|
|
|
page?: PageChannel,
|
|
|
|
|
};
|
|
|
|
|
export type BrowserContextRequestFinishedEvent = {
|
|
|
|
|
request: RequestChannel,
|
2021-08-30 18:58:44 +02:00
|
|
|
response?: ResponseChannel,
|
2021-05-13 19:29:14 +02:00
|
|
|
responseEndTiming: number,
|
|
|
|
|
page?: PageChannel,
|
|
|
|
|
};
|
|
|
|
|
export type BrowserContextResponseEvent = {
|
|
|
|
|
response: ResponseChannel,
|
|
|
|
|
page?: PageChannel,
|
|
|
|
|
};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type BrowserContextAddCookiesParams = {
|
2020-11-13 23:24:53 +01:00
|
|
|
cookies: SetNetworkCookie[],
|
2020-07-30 02:26:59 +02:00
|
|
|
};
|
|
|
|
|
export type BrowserContextAddCookiesOptions = {
|
|
|
|
|
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
|
|
|
|
export type BrowserContextAddCookiesResult = void;
|
|
|
|
|
export type BrowserContextAddInitScriptParams = {
|
|
|
|
|
source: string,
|
2020-07-30 02:26:59 +02:00
|
|
|
};
|
|
|
|
|
export type BrowserContextAddInitScriptOptions = {
|
|
|
|
|
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
|
|
|
|
export type BrowserContextAddInitScriptResult = void;
|
|
|
|
|
export type BrowserContextClearCookiesParams = {};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type BrowserContextClearCookiesOptions = {};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type BrowserContextClearCookiesResult = void;
|
|
|
|
|
export type BrowserContextClearPermissionsParams = {};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type BrowserContextClearPermissionsOptions = {};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type BrowserContextClearPermissionsResult = void;
|
|
|
|
|
export type BrowserContextCloseParams = {};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type BrowserContextCloseOptions = {};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type BrowserContextCloseResult = void;
|
|
|
|
|
export type BrowserContextCookiesParams = {
|
|
|
|
|
urls: string[],
|
2020-07-30 02:26:59 +02:00
|
|
|
};
|
|
|
|
|
export type BrowserContextCookiesOptions = {
|
|
|
|
|
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
|
|
|
|
export type BrowserContextCookiesResult = {
|
2020-11-13 23:24:53 +01:00
|
|
|
cookies: NetworkCookie[],
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
|
|
|
|
export type BrowserContextExposeBindingParams = {
|
|
|
|
|
name: string,
|
2020-10-02 07:47:31 +02:00
|
|
|
needsHandle?: boolean,
|
2020-07-30 02:26:59 +02:00
|
|
|
};
|
|
|
|
|
export type BrowserContextExposeBindingOptions = {
|
2020-10-02 07:47:31 +02:00
|
|
|
needsHandle?: boolean,
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
|
|
|
|
export type BrowserContextExposeBindingResult = void;
|
|
|
|
|
export type BrowserContextGrantPermissionsParams = {
|
|
|
|
|
permissions: string[],
|
|
|
|
|
origin?: string,
|
|
|
|
|
};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type BrowserContextGrantPermissionsOptions = {
|
|
|
|
|
origin?: string,
|
|
|
|
|
};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type BrowserContextGrantPermissionsResult = void;
|
|
|
|
|
export type BrowserContextNewPageParams = {};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type BrowserContextNewPageOptions = {};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type BrowserContextNewPageResult = {
|
|
|
|
|
page: PageChannel,
|
|
|
|
|
};
|
|
|
|
|
export type BrowserContextSetDefaultNavigationTimeoutNoReplyParams = {
|
2021-10-28 17:31:30 +02:00
|
|
|
timeout?: number,
|
2020-07-30 02:26:59 +02:00
|
|
|
};
|
|
|
|
|
export type BrowserContextSetDefaultNavigationTimeoutNoReplyOptions = {
|
2021-10-28 17:31:30 +02:00
|
|
|
timeout?: number,
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
|
|
|
|
export type BrowserContextSetDefaultNavigationTimeoutNoReplyResult = void;
|
|
|
|
|
export type BrowserContextSetDefaultTimeoutNoReplyParams = {
|
2021-10-28 17:31:30 +02:00
|
|
|
timeout?: number,
|
2020-07-30 02:26:59 +02:00
|
|
|
};
|
|
|
|
|
export type BrowserContextSetDefaultTimeoutNoReplyOptions = {
|
2021-10-28 17:31:30 +02:00
|
|
|
timeout?: number,
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
|
|
|
|
export type BrowserContextSetDefaultTimeoutNoReplyResult = void;
|
|
|
|
|
export type BrowserContextSetExtraHTTPHeadersParams = {
|
2020-11-13 23:24:53 +01:00
|
|
|
headers: NameValue[],
|
2020-07-30 02:26:59 +02:00
|
|
|
};
|
|
|
|
|
export type BrowserContextSetExtraHTTPHeadersOptions = {
|
|
|
|
|
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
|
|
|
|
export type BrowserContextSetExtraHTTPHeadersResult = void;
|
|
|
|
|
export type BrowserContextSetGeolocationParams = {
|
|
|
|
|
geolocation?: {
|
|
|
|
|
longitude: number,
|
|
|
|
|
latitude: number,
|
|
|
|
|
accuracy?: number,
|
|
|
|
|
},
|
|
|
|
|
};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type BrowserContextSetGeolocationOptions = {
|
|
|
|
|
geolocation?: {
|
|
|
|
|
longitude: number,
|
|
|
|
|
latitude: number,
|
|
|
|
|
accuracy?: number,
|
|
|
|
|
},
|
|
|
|
|
};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type BrowserContextSetGeolocationResult = void;
|
|
|
|
|
export type BrowserContextSetHTTPCredentialsParams = {
|
|
|
|
|
httpCredentials?: {
|
|
|
|
|
username: string,
|
|
|
|
|
password: string,
|
2023-03-27 17:52:00 +02:00
|
|
|
origin?: string,
|
2020-07-21 02:38:06 +02:00
|
|
|
},
|
|
|
|
|
};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type BrowserContextSetHTTPCredentialsOptions = {
|
|
|
|
|
httpCredentials?: {
|
|
|
|
|
username: string,
|
|
|
|
|
password: string,
|
2023-03-27 17:52:00 +02:00
|
|
|
origin?: string,
|
2020-07-30 02:26:59 +02:00
|
|
|
},
|
|
|
|
|
};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type BrowserContextSetHTTPCredentialsResult = void;
|
2023-01-27 19:43:19 +01:00
|
|
|
export type BrowserContextSetNetworkInterceptionPatternsParams = {
|
|
|
|
|
patterns: {
|
|
|
|
|
glob?: string,
|
|
|
|
|
regexSource?: string,
|
|
|
|
|
regexFlags?: string,
|
|
|
|
|
}[],
|
2020-07-30 02:26:59 +02:00
|
|
|
};
|
2023-01-27 19:43:19 +01:00
|
|
|
export type BrowserContextSetNetworkInterceptionPatternsOptions = {
|
2020-07-30 02:26:59 +02:00
|
|
|
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
2023-01-27 19:43:19 +01:00
|
|
|
export type BrowserContextSetNetworkInterceptionPatternsResult = void;
|
2020-07-21 02:38:06 +02:00
|
|
|
export type BrowserContextSetOfflineParams = {
|
|
|
|
|
offline: boolean,
|
2020-07-30 02:26:59 +02:00
|
|
|
};
|
|
|
|
|
export type BrowserContextSetOfflineOptions = {
|
|
|
|
|
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
|
|
|
|
export type BrowserContextSetOfflineResult = void;
|
2020-11-13 23:24:53 +01:00
|
|
|
export type BrowserContextStorageStateParams = {};
|
|
|
|
|
export type BrowserContextStorageStateOptions = {};
|
|
|
|
|
export type BrowserContextStorageStateResult = {
|
|
|
|
|
cookies: NetworkCookie[],
|
|
|
|
|
origins: OriginStorage[],
|
|
|
|
|
};
|
2021-01-25 23:49:26 +01:00
|
|
|
export type BrowserContextPauseParams = {};
|
|
|
|
|
export type BrowserContextPauseOptions = {};
|
|
|
|
|
export type BrowserContextPauseResult = void;
|
2021-01-25 04:21:19 +01:00
|
|
|
export type BrowserContextRecorderSupplementEnableParams = {
|
2021-02-12 02:46:54 +01:00
|
|
|
language?: string,
|
2022-08-06 04:34:57 +02:00
|
|
|
mode?: 'inspecting' | 'recording',
|
2021-02-19 18:33:24 +01:00
|
|
|
pauseOnNextStatement?: boolean,
|
2021-01-25 23:49:26 +01:00
|
|
|
launchOptions?: any,
|
|
|
|
|
contextOptions?: any,
|
2021-01-25 04:21:19 +01:00
|
|
|
device?: string,
|
|
|
|
|
saveStorage?: string,
|
2021-01-25 23:49:26 +01:00
|
|
|
outputFile?: string,
|
2022-08-09 00:13:38 +02:00
|
|
|
handleSIGINT?: boolean,
|
2022-08-10 01:42:55 +02:00
|
|
|
omitCallTracking?: boolean,
|
2021-01-25 04:21:19 +01:00
|
|
|
};
|
|
|
|
|
export type BrowserContextRecorderSupplementEnableOptions = {
|
2021-02-12 02:46:54 +01:00
|
|
|
language?: string,
|
2022-08-06 04:34:57 +02:00
|
|
|
mode?: 'inspecting' | 'recording',
|
2021-02-19 18:33:24 +01:00
|
|
|
pauseOnNextStatement?: boolean,
|
2021-01-25 23:49:26 +01:00
|
|
|
launchOptions?: any,
|
|
|
|
|
contextOptions?: any,
|
2021-01-25 04:21:19 +01:00
|
|
|
device?: string,
|
|
|
|
|
saveStorage?: string,
|
2021-01-25 23:49:26 +01:00
|
|
|
outputFile?: string,
|
2022-08-09 00:13:38 +02:00
|
|
|
handleSIGINT?: boolean,
|
2022-08-10 01:42:55 +02:00
|
|
|
omitCallTracking?: boolean,
|
2021-01-25 04:21:19 +01:00
|
|
|
};
|
|
|
|
|
export type BrowserContextRecorderSupplementEnableResult = void;
|
2021-04-02 03:47:14 +02:00
|
|
|
export type BrowserContextNewCDPSessionParams = {
|
2021-08-16 21:49:10 +02:00
|
|
|
page?: PageChannel,
|
|
|
|
|
frame?: FrameChannel,
|
2020-07-30 02:26:59 +02:00
|
|
|
};
|
2021-04-02 03:47:14 +02:00
|
|
|
export type BrowserContextNewCDPSessionOptions = {
|
2021-08-16 21:49:10 +02:00
|
|
|
page?: PageChannel,
|
|
|
|
|
frame?: FrameChannel,
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
2021-04-02 03:47:14 +02:00
|
|
|
export type BrowserContextNewCDPSessionResult = {
|
2020-07-21 02:38:06 +02:00
|
|
|
session: CDPSessionChannel,
|
|
|
|
|
};
|
2022-06-29 00:09:36 +02:00
|
|
|
export type BrowserContextHarStartParams = {
|
|
|
|
|
page?: PageChannel,
|
|
|
|
|
options: RecordHarOptions,
|
|
|
|
|
};
|
|
|
|
|
export type BrowserContextHarStartOptions = {
|
|
|
|
|
page?: PageChannel,
|
|
|
|
|
};
|
|
|
|
|
export type BrowserContextHarStartResult = {
|
|
|
|
|
harId: string,
|
|
|
|
|
};
|
|
|
|
|
export type BrowserContextHarExportParams = {
|
|
|
|
|
harId?: string,
|
|
|
|
|
};
|
|
|
|
|
export type BrowserContextHarExportOptions = {
|
|
|
|
|
harId?: string,
|
|
|
|
|
};
|
2021-08-25 22:32:56 +02:00
|
|
|
export type BrowserContextHarExportResult = {
|
|
|
|
|
artifact: ArtifactChannel,
|
|
|
|
|
};
|
2022-03-18 17:00:52 +01:00
|
|
|
export type BrowserContextCreateTempFileParams = {
|
|
|
|
|
name: string,
|
|
|
|
|
};
|
|
|
|
|
export type BrowserContextCreateTempFileOptions = {
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
export type BrowserContextCreateTempFileResult = {
|
|
|
|
|
writableStream: WritableStreamChannel,
|
|
|
|
|
};
|
2022-11-10 06:10:57 +01:00
|
|
|
export type BrowserContextUpdateSubscriptionParams = {
|
|
|
|
|
event: 'request' | 'response' | 'requestFinished' | 'requestFailed',
|
|
|
|
|
enabled: boolean,
|
|
|
|
|
};
|
|
|
|
|
export type BrowserContextUpdateSubscriptionOptions = {
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
export type BrowserContextUpdateSubscriptionResult = void;
|
2020-06-30 19:55:11 +02:00
|
|
|
|
2021-08-30 18:43:18 +02:00
|
|
|
export interface BrowserContextEvents {
|
|
|
|
|
'bindingCall': BrowserContextBindingCallEvent;
|
2023-03-28 01:35:05 +02:00
|
|
|
'console': BrowserContextConsoleEvent;
|
2021-08-30 18:43:18 +02:00
|
|
|
'close': BrowserContextCloseEvent;
|
2023-03-28 22:15:55 +02:00
|
|
|
'dialog': BrowserContextDialogEvent;
|
2021-08-30 18:43:18 +02:00
|
|
|
'page': BrowserContextPageEvent;
|
|
|
|
|
'route': BrowserContextRouteEvent;
|
|
|
|
|
'video': BrowserContextVideoEvent;
|
|
|
|
|
'backgroundPage': BrowserContextBackgroundPageEvent;
|
|
|
|
|
'serviceWorker': BrowserContextServiceWorkerEvent;
|
|
|
|
|
'request': BrowserContextRequestEvent;
|
|
|
|
|
'requestFailed': BrowserContextRequestFailedEvent;
|
|
|
|
|
'requestFinished': BrowserContextRequestFinishedEvent;
|
|
|
|
|
'response': BrowserContextResponseEvent;
|
|
|
|
|
}
|
|
|
|
|
|
2020-07-21 02:38:06 +02:00
|
|
|
// ----------- Page -----------
|
2020-06-26 21:28:27 +02:00
|
|
|
export type PageInitializer = {
|
|
|
|
|
mainFrame: FrameChannel,
|
2020-07-21 02:38:06 +02:00
|
|
|
viewportSize?: {
|
|
|
|
|
width: number,
|
|
|
|
|
height: number,
|
|
|
|
|
},
|
|
|
|
|
isClosed: boolean,
|
2021-04-02 20:15:07 +02:00
|
|
|
opener?: PageChannel,
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
2021-11-18 00:26:01 +01:00
|
|
|
export interface PageEventTarget {
|
2020-07-21 02:38:06 +02:00
|
|
|
on(event: 'bindingCall', callback: (params: PageBindingCallEvent) => void): this;
|
|
|
|
|
on(event: 'close', callback: (params: PageCloseEvent) => void): this;
|
|
|
|
|
on(event: 'crash', callback: (params: PageCrashEvent) => void): this;
|
|
|
|
|
on(event: 'download', callback: (params: PageDownloadEvent) => void): this;
|
|
|
|
|
on(event: 'fileChooser', callback: (params: PageFileChooserEvent) => void): this;
|
|
|
|
|
on(event: 'frameAttached', callback: (params: PageFrameAttachedEvent) => void): this;
|
|
|
|
|
on(event: 'frameDetached', callback: (params: PageFrameDetachedEvent) => void): this;
|
|
|
|
|
on(event: 'pageError', callback: (params: PagePageErrorEvent) => void): this;
|
|
|
|
|
on(event: 'route', callback: (params: PageRouteEvent) => void): this;
|
2020-10-14 07:15:51 +02:00
|
|
|
on(event: 'video', callback: (params: PageVideoEvent) => void): this;
|
2020-10-27 06:20:43 +01:00
|
|
|
on(event: 'webSocket', callback: (params: PageWebSocketEvent) => void): this;
|
2020-07-21 02:38:06 +02:00
|
|
|
on(event: 'worker', callback: (params: PageWorkerEvent) => void): this;
|
2021-11-18 00:26:01 +01:00
|
|
|
}
|
|
|
|
|
export interface PageChannel extends PageEventTarget, EventTargetChannel {
|
|
|
|
|
_type_Page: boolean;
|
2023-02-23 23:37:53 +01:00
|
|
|
setDefaultNavigationTimeoutNoReply(params: PageSetDefaultNavigationTimeoutNoReplyParams, metadata?: CallMetadata): Promise<PageSetDefaultNavigationTimeoutNoReplyResult>;
|
|
|
|
|
setDefaultTimeoutNoReply(params: PageSetDefaultTimeoutNoReplyParams, metadata?: CallMetadata): Promise<PageSetDefaultTimeoutNoReplyResult>;
|
|
|
|
|
addInitScript(params: PageAddInitScriptParams, metadata?: CallMetadata): Promise<PageAddInitScriptResult>;
|
|
|
|
|
close(params: PageCloseParams, metadata?: CallMetadata): Promise<PageCloseResult>;
|
|
|
|
|
emulateMedia(params: PageEmulateMediaParams, metadata?: CallMetadata): Promise<PageEmulateMediaResult>;
|
|
|
|
|
exposeBinding(params: PageExposeBindingParams, metadata?: CallMetadata): Promise<PageExposeBindingResult>;
|
|
|
|
|
goBack(params: PageGoBackParams, metadata?: CallMetadata): Promise<PageGoBackResult>;
|
|
|
|
|
goForward(params: PageGoForwardParams, metadata?: CallMetadata): Promise<PageGoForwardResult>;
|
|
|
|
|
reload(params: PageReloadParams, metadata?: CallMetadata): Promise<PageReloadResult>;
|
|
|
|
|
expectScreenshot(params: PageExpectScreenshotParams, metadata?: CallMetadata): Promise<PageExpectScreenshotResult>;
|
|
|
|
|
screenshot(params: PageScreenshotParams, metadata?: CallMetadata): Promise<PageScreenshotResult>;
|
|
|
|
|
setExtraHTTPHeaders(params: PageSetExtraHTTPHeadersParams, metadata?: CallMetadata): Promise<PageSetExtraHTTPHeadersResult>;
|
|
|
|
|
setNetworkInterceptionPatterns(params: PageSetNetworkInterceptionPatternsParams, metadata?: CallMetadata): Promise<PageSetNetworkInterceptionPatternsResult>;
|
|
|
|
|
setViewportSize(params: PageSetViewportSizeParams, metadata?: CallMetadata): Promise<PageSetViewportSizeResult>;
|
|
|
|
|
keyboardDown(params: PageKeyboardDownParams, metadata?: CallMetadata): Promise<PageKeyboardDownResult>;
|
|
|
|
|
keyboardUp(params: PageKeyboardUpParams, metadata?: CallMetadata): Promise<PageKeyboardUpResult>;
|
|
|
|
|
keyboardInsertText(params: PageKeyboardInsertTextParams, metadata?: CallMetadata): Promise<PageKeyboardInsertTextResult>;
|
|
|
|
|
keyboardType(params: PageKeyboardTypeParams, metadata?: CallMetadata): Promise<PageKeyboardTypeResult>;
|
|
|
|
|
keyboardPress(params: PageKeyboardPressParams, metadata?: CallMetadata): Promise<PageKeyboardPressResult>;
|
|
|
|
|
mouseMove(params: PageMouseMoveParams, metadata?: CallMetadata): Promise<PageMouseMoveResult>;
|
|
|
|
|
mouseDown(params: PageMouseDownParams, metadata?: CallMetadata): Promise<PageMouseDownResult>;
|
|
|
|
|
mouseUp(params: PageMouseUpParams, metadata?: CallMetadata): Promise<PageMouseUpResult>;
|
|
|
|
|
mouseClick(params: PageMouseClickParams, metadata?: CallMetadata): Promise<PageMouseClickResult>;
|
|
|
|
|
mouseWheel(params: PageMouseWheelParams, metadata?: CallMetadata): Promise<PageMouseWheelResult>;
|
|
|
|
|
touchscreenTap(params: PageTouchscreenTapParams, metadata?: CallMetadata): Promise<PageTouchscreenTapResult>;
|
|
|
|
|
accessibilitySnapshot(params: PageAccessibilitySnapshotParams, metadata?: CallMetadata): Promise<PageAccessibilitySnapshotResult>;
|
|
|
|
|
pdf(params: PagePdfParams, metadata?: CallMetadata): Promise<PagePdfResult>;
|
|
|
|
|
startJSCoverage(params: PageStartJSCoverageParams, metadata?: CallMetadata): Promise<PageStartJSCoverageResult>;
|
|
|
|
|
stopJSCoverage(params?: PageStopJSCoverageParams, metadata?: CallMetadata): Promise<PageStopJSCoverageResult>;
|
|
|
|
|
startCSSCoverage(params: PageStartCSSCoverageParams, metadata?: CallMetadata): Promise<PageStartCSSCoverageResult>;
|
|
|
|
|
stopCSSCoverage(params?: PageStopCSSCoverageParams, metadata?: CallMetadata): Promise<PageStopCSSCoverageResult>;
|
|
|
|
|
bringToFront(params?: PageBringToFrontParams, metadata?: CallMetadata): Promise<PageBringToFrontResult>;
|
|
|
|
|
updateSubscription(params: PageUpdateSubscriptionParams, metadata?: CallMetadata): Promise<PageUpdateSubscriptionResult>;
|
2020-07-21 02:38:06 +02:00
|
|
|
}
|
|
|
|
|
export type PageBindingCallEvent = {
|
|
|
|
|
binding: BindingCallChannel,
|
|
|
|
|
};
|
|
|
|
|
export type PageCloseEvent = {};
|
|
|
|
|
export type PageCrashEvent = {};
|
|
|
|
|
export type PageDownloadEvent = {
|
2021-03-31 19:38:05 +02:00
|
|
|
url: string,
|
|
|
|
|
suggestedFilename: string,
|
|
|
|
|
artifact: ArtifactChannel,
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
|
|
|
|
export type PageFileChooserEvent = {
|
|
|
|
|
element: ElementHandleChannel,
|
|
|
|
|
isMultiple: boolean,
|
|
|
|
|
};
|
|
|
|
|
export type PageFrameAttachedEvent = {
|
|
|
|
|
frame: FrameChannel,
|
|
|
|
|
};
|
|
|
|
|
export type PageFrameDetachedEvent = {
|
|
|
|
|
frame: FrameChannel,
|
|
|
|
|
};
|
|
|
|
|
export type PagePageErrorEvent = {
|
|
|
|
|
error: SerializedError,
|
|
|
|
|
};
|
|
|
|
|
export type PageRouteEvent = {
|
|
|
|
|
route: RouteChannel,
|
|
|
|
|
};
|
2020-10-14 07:15:51 +02:00
|
|
|
export type PageVideoEvent = {
|
2021-03-31 19:38:05 +02:00
|
|
|
artifact: ArtifactChannel,
|
2020-10-14 07:15:51 +02:00
|
|
|
};
|
2020-10-27 06:20:43 +01:00
|
|
|
export type PageWebSocketEvent = {
|
|
|
|
|
webSocket: WebSocketChannel,
|
|
|
|
|
};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type PageWorkerEvent = {
|
|
|
|
|
worker: WorkerChannel,
|
|
|
|
|
};
|
|
|
|
|
export type PageSetDefaultNavigationTimeoutNoReplyParams = {
|
2021-10-28 17:31:30 +02:00
|
|
|
timeout?: number,
|
2020-07-30 02:26:59 +02:00
|
|
|
};
|
|
|
|
|
export type PageSetDefaultNavigationTimeoutNoReplyOptions = {
|
2021-10-28 17:31:30 +02:00
|
|
|
timeout?: number,
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
|
|
|
|
export type PageSetDefaultNavigationTimeoutNoReplyResult = void;
|
|
|
|
|
export type PageSetDefaultTimeoutNoReplyParams = {
|
2021-10-28 17:31:30 +02:00
|
|
|
timeout?: number,
|
2020-07-30 02:26:59 +02:00
|
|
|
};
|
|
|
|
|
export type PageSetDefaultTimeoutNoReplyOptions = {
|
2021-10-28 17:31:30 +02:00
|
|
|
timeout?: number,
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
|
|
|
|
export type PageSetDefaultTimeoutNoReplyResult = void;
|
|
|
|
|
export type PageAddInitScriptParams = {
|
|
|
|
|
source: string,
|
2020-07-30 02:26:59 +02:00
|
|
|
};
|
|
|
|
|
export type PageAddInitScriptOptions = {
|
|
|
|
|
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
|
|
|
|
export type PageAddInitScriptResult = void;
|
|
|
|
|
export type PageCloseParams = {
|
|
|
|
|
runBeforeUnload?: boolean,
|
|
|
|
|
};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type PageCloseOptions = {
|
|
|
|
|
runBeforeUnload?: boolean,
|
|
|
|
|
};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type PageCloseResult = void;
|
|
|
|
|
export type PageEmulateMediaParams = {
|
2022-10-31 17:09:52 +01:00
|
|
|
media?: 'screen' | 'print' | 'no-override',
|
|
|
|
|
colorScheme?: 'dark' | 'light' | 'no-preference' | 'no-override',
|
|
|
|
|
reducedMotion?: 'reduce' | 'no-preference' | 'no-override',
|
|
|
|
|
forcedColors?: 'active' | 'none' | 'no-override',
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type PageEmulateMediaOptions = {
|
2022-10-31 17:09:52 +01:00
|
|
|
media?: 'screen' | 'print' | 'no-override',
|
|
|
|
|
colorScheme?: 'dark' | 'light' | 'no-preference' | 'no-override',
|
|
|
|
|
reducedMotion?: 'reduce' | 'no-preference' | 'no-override',
|
|
|
|
|
forcedColors?: 'active' | 'none' | 'no-override',
|
2020-07-30 02:26:59 +02:00
|
|
|
};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type PageEmulateMediaResult = void;
|
|
|
|
|
export type PageExposeBindingParams = {
|
|
|
|
|
name: string,
|
2020-10-02 07:47:31 +02:00
|
|
|
needsHandle?: boolean,
|
2020-07-30 02:26:59 +02:00
|
|
|
};
|
|
|
|
|
export type PageExposeBindingOptions = {
|
2020-10-02 07:47:31 +02:00
|
|
|
needsHandle?: boolean,
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
|
|
|
|
export type PageExposeBindingResult = void;
|
|
|
|
|
export type PageGoBackParams = {
|
|
|
|
|
timeout?: number,
|
2021-11-02 01:12:19 +01:00
|
|
|
waitUntil?: LifecycleEvent,
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type PageGoBackOptions = {
|
|
|
|
|
timeout?: number,
|
2021-11-02 01:12:19 +01:00
|
|
|
waitUntil?: LifecycleEvent,
|
2020-07-30 02:26:59 +02:00
|
|
|
};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type PageGoBackResult = {
|
|
|
|
|
response?: ResponseChannel,
|
|
|
|
|
};
|
|
|
|
|
export type PageGoForwardParams = {
|
|
|
|
|
timeout?: number,
|
2021-11-02 01:12:19 +01:00
|
|
|
waitUntil?: LifecycleEvent,
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type PageGoForwardOptions = {
|
|
|
|
|
timeout?: number,
|
2021-11-02 01:12:19 +01:00
|
|
|
waitUntil?: LifecycleEvent,
|
2020-07-30 02:26:59 +02:00
|
|
|
};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type PageGoForwardResult = {
|
|
|
|
|
response?: ResponseChannel,
|
|
|
|
|
};
|
|
|
|
|
export type PageReloadParams = {
|
|
|
|
|
timeout?: number,
|
2021-11-02 01:12:19 +01:00
|
|
|
waitUntil?: LifecycleEvent,
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type PageReloadOptions = {
|
|
|
|
|
timeout?: number,
|
2021-11-02 01:12:19 +01:00
|
|
|
waitUntil?: LifecycleEvent,
|
2020-07-30 02:26:59 +02:00
|
|
|
};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type PageReloadResult = {
|
|
|
|
|
response?: ResponseChannel,
|
|
|
|
|
};
|
2022-02-28 21:25:59 +01:00
|
|
|
export type PageExpectScreenshotParams = {
|
|
|
|
|
expected?: Binary,
|
|
|
|
|
timeout?: number,
|
|
|
|
|
isNot: boolean,
|
|
|
|
|
locator?: {
|
|
|
|
|
frame: FrameChannel,
|
|
|
|
|
selector: string,
|
|
|
|
|
},
|
|
|
|
|
comparatorOptions?: {
|
feat: implement a new image comparison function (#19166)
This patch implements a new image comparison function, codenamed
"ssim-cie94". The goal of the new comparison function is to cancel out
browser non-determenistic rendering.
To use the new comparison function:
```ts
await expect(page).toHaveScreenshot({
comparator: 'ssim-cie94',
});
```
As of Nov 30, 2022, we identified the following sources of
non-determenistic rendering for Chromium:
- Anti-aliasing for certain shapes might be different due to the
way skia rasterizes certain shapes.
- Color blending might be different on `x86` and `aarch64`
architectures.
The new function employs a few heuristics to fight these
differences.
Consider two non-equal image pixels `(r1, g1, b1)` and `(r2, g2, b2)`:
1. If the [CIE94] metric is less then 1.0, then we consider these pixels
**EQUAL**. (The value `1.0` is the [just-noticeable difference] for
[CIE94].). Otherwise, proceed to next step.
1. If all the 8 neighbors of the first pixel match its color, or
if the 8 neighbors of the second pixel match its color, then these
pixels are **DIFFERENT**. (In case of anti-aliasing, some of the
direct neighbors have to be blended up or down.) Otherwise, proceed
to next step.
1. If SSIM in some locality around the different pixels is more than
0.99, then consider this pixels to be **EQUAL**. Otherwise, mark them
as **DIFFERENT**. (Local SSIM for anti-aliased pixels turns out to be
very close to 1.0).
[CIE94]: https://en.wikipedia.org/wiki/Color_difference#CIE94
[just-noticeable difference]:
https://en.wikipedia.org/wiki/Just-noticeable_difference
2022-12-03 00:22:05 +01:00
|
|
|
comparator?: string,
|
2022-03-04 08:17:31 +01:00
|
|
|
maxDiffPixels?: number,
|
|
|
|
|
maxDiffPixelRatio?: number,
|
2022-02-28 21:25:59 +01:00
|
|
|
threshold?: number,
|
|
|
|
|
},
|
|
|
|
|
screenshotOptions?: {
|
|
|
|
|
fullPage?: boolean,
|
|
|
|
|
clip?: Rect,
|
2022-03-11 03:36:20 +01:00
|
|
|
omitBackground?: boolean,
|
2022-03-30 02:48:13 +02:00
|
|
|
caret?: 'hide' | 'initial',
|
2022-03-11 03:36:20 +01:00
|
|
|
animations?: 'disabled' | 'allow',
|
2022-04-01 21:28:40 +02:00
|
|
|
scale?: 'css' | 'device',
|
2022-02-28 21:25:59 +01:00
|
|
|
mask?: {
|
|
|
|
|
frame: FrameChannel,
|
|
|
|
|
selector: string,
|
|
|
|
|
}[],
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
export type PageExpectScreenshotOptions = {
|
|
|
|
|
expected?: Binary,
|
|
|
|
|
timeout?: number,
|
|
|
|
|
locator?: {
|
|
|
|
|
frame: FrameChannel,
|
|
|
|
|
selector: string,
|
|
|
|
|
},
|
|
|
|
|
comparatorOptions?: {
|
feat: implement a new image comparison function (#19166)
This patch implements a new image comparison function, codenamed
"ssim-cie94". The goal of the new comparison function is to cancel out
browser non-determenistic rendering.
To use the new comparison function:
```ts
await expect(page).toHaveScreenshot({
comparator: 'ssim-cie94',
});
```
As of Nov 30, 2022, we identified the following sources of
non-determenistic rendering for Chromium:
- Anti-aliasing for certain shapes might be different due to the
way skia rasterizes certain shapes.
- Color blending might be different on `x86` and `aarch64`
architectures.
The new function employs a few heuristics to fight these
differences.
Consider two non-equal image pixels `(r1, g1, b1)` and `(r2, g2, b2)`:
1. If the [CIE94] metric is less then 1.0, then we consider these pixels
**EQUAL**. (The value `1.0` is the [just-noticeable difference] for
[CIE94].). Otherwise, proceed to next step.
1. If all the 8 neighbors of the first pixel match its color, or
if the 8 neighbors of the second pixel match its color, then these
pixels are **DIFFERENT**. (In case of anti-aliasing, some of the
direct neighbors have to be blended up or down.) Otherwise, proceed
to next step.
1. If SSIM in some locality around the different pixels is more than
0.99, then consider this pixels to be **EQUAL**. Otherwise, mark them
as **DIFFERENT**. (Local SSIM for anti-aliased pixels turns out to be
very close to 1.0).
[CIE94]: https://en.wikipedia.org/wiki/Color_difference#CIE94
[just-noticeable difference]:
https://en.wikipedia.org/wiki/Just-noticeable_difference
2022-12-03 00:22:05 +01:00
|
|
|
comparator?: string,
|
2022-03-04 08:17:31 +01:00
|
|
|
maxDiffPixels?: number,
|
|
|
|
|
maxDiffPixelRatio?: number,
|
2022-02-28 21:25:59 +01:00
|
|
|
threshold?: number,
|
|
|
|
|
},
|
|
|
|
|
screenshotOptions?: {
|
|
|
|
|
fullPage?: boolean,
|
|
|
|
|
clip?: Rect,
|
2022-03-11 03:36:20 +01:00
|
|
|
omitBackground?: boolean,
|
2022-03-30 02:48:13 +02:00
|
|
|
caret?: 'hide' | 'initial',
|
2022-03-11 03:36:20 +01:00
|
|
|
animations?: 'disabled' | 'allow',
|
2022-04-01 21:28:40 +02:00
|
|
|
scale?: 'css' | 'device',
|
2022-02-28 21:25:59 +01:00
|
|
|
mask?: {
|
|
|
|
|
frame: FrameChannel,
|
|
|
|
|
selector: string,
|
|
|
|
|
}[],
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
export type PageExpectScreenshotResult = {
|
|
|
|
|
diff?: Binary,
|
|
|
|
|
errorMessage?: string,
|
|
|
|
|
actual?: Binary,
|
|
|
|
|
previous?: Binary,
|
|
|
|
|
log?: string[],
|
|
|
|
|
};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type PageScreenshotParams = {
|
|
|
|
|
timeout?: number,
|
|
|
|
|
type?: 'png' | 'jpeg',
|
|
|
|
|
quality?: number,
|
|
|
|
|
fullPage?: boolean,
|
2020-12-10 00:06:57 +01:00
|
|
|
clip?: Rect,
|
2022-03-11 03:36:20 +01:00
|
|
|
omitBackground?: boolean,
|
2022-03-30 02:48:13 +02:00
|
|
|
caret?: 'hide' | 'initial',
|
2022-03-11 03:36:20 +01:00
|
|
|
animations?: 'disabled' | 'allow',
|
2022-04-01 21:28:40 +02:00
|
|
|
scale?: 'css' | 'device',
|
2022-02-15 16:05:05 +01:00
|
|
|
mask?: {
|
|
|
|
|
frame: FrameChannel,
|
|
|
|
|
selector: string,
|
|
|
|
|
}[],
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type PageScreenshotOptions = {
|
|
|
|
|
timeout?: number,
|
|
|
|
|
type?: 'png' | 'jpeg',
|
|
|
|
|
quality?: number,
|
|
|
|
|
fullPage?: boolean,
|
2020-12-10 00:06:57 +01:00
|
|
|
clip?: Rect,
|
2022-03-11 03:36:20 +01:00
|
|
|
omitBackground?: boolean,
|
2022-03-30 02:48:13 +02:00
|
|
|
caret?: 'hide' | 'initial',
|
2022-03-11 03:36:20 +01:00
|
|
|
animations?: 'disabled' | 'allow',
|
2022-04-01 21:28:40 +02:00
|
|
|
scale?: 'css' | 'device',
|
2022-02-15 16:05:05 +01:00
|
|
|
mask?: {
|
|
|
|
|
frame: FrameChannel,
|
|
|
|
|
selector: string,
|
|
|
|
|
}[],
|
2020-07-30 02:26:59 +02:00
|
|
|
};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type PageScreenshotResult = {
|
|
|
|
|
binary: Binary,
|
|
|
|
|
};
|
|
|
|
|
export type PageSetExtraHTTPHeadersParams = {
|
2020-11-13 23:24:53 +01:00
|
|
|
headers: NameValue[],
|
2020-07-30 02:26:59 +02:00
|
|
|
};
|
|
|
|
|
export type PageSetExtraHTTPHeadersOptions = {
|
|
|
|
|
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
|
|
|
|
export type PageSetExtraHTTPHeadersResult = void;
|
2023-01-27 19:43:19 +01:00
|
|
|
export type PageSetNetworkInterceptionPatternsParams = {
|
|
|
|
|
patterns: {
|
|
|
|
|
glob?: string,
|
|
|
|
|
regexSource?: string,
|
|
|
|
|
regexFlags?: string,
|
|
|
|
|
}[],
|
2020-07-30 02:26:59 +02:00
|
|
|
};
|
2023-01-27 19:43:19 +01:00
|
|
|
export type PageSetNetworkInterceptionPatternsOptions = {
|
2020-07-30 02:26:59 +02:00
|
|
|
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
2023-01-27 19:43:19 +01:00
|
|
|
export type PageSetNetworkInterceptionPatternsResult = void;
|
2020-07-21 02:38:06 +02:00
|
|
|
export type PageSetViewportSizeParams = {
|
|
|
|
|
viewportSize: {
|
|
|
|
|
width: number,
|
|
|
|
|
height: number,
|
|
|
|
|
},
|
2020-07-30 02:26:59 +02:00
|
|
|
};
|
|
|
|
|
export type PageSetViewportSizeOptions = {
|
|
|
|
|
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
|
|
|
|
export type PageSetViewportSizeResult = void;
|
|
|
|
|
export type PageKeyboardDownParams = {
|
|
|
|
|
key: string,
|
2020-07-30 02:26:59 +02:00
|
|
|
};
|
|
|
|
|
export type PageKeyboardDownOptions = {
|
|
|
|
|
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
|
|
|
|
export type PageKeyboardDownResult = void;
|
|
|
|
|
export type PageKeyboardUpParams = {
|
|
|
|
|
key: string,
|
2020-07-30 02:26:59 +02:00
|
|
|
};
|
|
|
|
|
export type PageKeyboardUpOptions = {
|
|
|
|
|
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
|
|
|
|
export type PageKeyboardUpResult = void;
|
|
|
|
|
export type PageKeyboardInsertTextParams = {
|
|
|
|
|
text: string,
|
2020-07-30 02:26:59 +02:00
|
|
|
};
|
|
|
|
|
export type PageKeyboardInsertTextOptions = {
|
|
|
|
|
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
|
|
|
|
export type PageKeyboardInsertTextResult = void;
|
|
|
|
|
export type PageKeyboardTypeParams = {
|
|
|
|
|
text: string,
|
|
|
|
|
delay?: number,
|
|
|
|
|
};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type PageKeyboardTypeOptions = {
|
|
|
|
|
delay?: number,
|
|
|
|
|
};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type PageKeyboardTypeResult = void;
|
|
|
|
|
export type PageKeyboardPressParams = {
|
|
|
|
|
key: string,
|
|
|
|
|
delay?: number,
|
|
|
|
|
};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type PageKeyboardPressOptions = {
|
|
|
|
|
delay?: number,
|
|
|
|
|
};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type PageKeyboardPressResult = void;
|
|
|
|
|
export type PageMouseMoveParams = {
|
|
|
|
|
x: number,
|
|
|
|
|
y: number,
|
|
|
|
|
steps?: number,
|
|
|
|
|
};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type PageMouseMoveOptions = {
|
|
|
|
|
steps?: number,
|
|
|
|
|
};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type PageMouseMoveResult = void;
|
|
|
|
|
export type PageMouseDownParams = {
|
|
|
|
|
button?: 'left' | 'right' | 'middle',
|
|
|
|
|
clickCount?: number,
|
|
|
|
|
};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type PageMouseDownOptions = {
|
|
|
|
|
button?: 'left' | 'right' | 'middle',
|
|
|
|
|
clickCount?: number,
|
|
|
|
|
};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type PageMouseDownResult = void;
|
|
|
|
|
export type PageMouseUpParams = {
|
|
|
|
|
button?: 'left' | 'right' | 'middle',
|
|
|
|
|
clickCount?: number,
|
|
|
|
|
};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type PageMouseUpOptions = {
|
|
|
|
|
button?: 'left' | 'right' | 'middle',
|
|
|
|
|
clickCount?: number,
|
|
|
|
|
};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type PageMouseUpResult = void;
|
|
|
|
|
export type PageMouseClickParams = {
|
|
|
|
|
x: number,
|
|
|
|
|
y: number,
|
|
|
|
|
delay?: number,
|
|
|
|
|
button?: 'left' | 'right' | 'middle',
|
|
|
|
|
clickCount?: number,
|
|
|
|
|
};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type PageMouseClickOptions = {
|
|
|
|
|
delay?: number,
|
|
|
|
|
button?: 'left' | 'right' | 'middle',
|
|
|
|
|
clickCount?: number,
|
|
|
|
|
};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type PageMouseClickResult = void;
|
2021-09-14 21:22:52 +02:00
|
|
|
export type PageMouseWheelParams = {
|
|
|
|
|
deltaX: number,
|
|
|
|
|
deltaY: number,
|
|
|
|
|
};
|
|
|
|
|
export type PageMouseWheelOptions = {
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
export type PageMouseWheelResult = void;
|
2020-10-19 19:07:33 +02:00
|
|
|
export type PageTouchscreenTapParams = {
|
|
|
|
|
x: number,
|
|
|
|
|
y: number,
|
|
|
|
|
};
|
|
|
|
|
export type PageTouchscreenTapOptions = {
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
export type PageTouchscreenTapResult = void;
|
2020-07-21 02:38:06 +02:00
|
|
|
export type PageAccessibilitySnapshotParams = {
|
|
|
|
|
interestingOnly?: boolean,
|
|
|
|
|
root?: ElementHandleChannel,
|
|
|
|
|
};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type PageAccessibilitySnapshotOptions = {
|
|
|
|
|
interestingOnly?: boolean,
|
|
|
|
|
root?: ElementHandleChannel,
|
|
|
|
|
};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type PageAccessibilitySnapshotResult = {
|
|
|
|
|
rootAXNode?: AXNode,
|
|
|
|
|
};
|
|
|
|
|
export type PagePdfParams = {
|
|
|
|
|
scale?: number,
|
|
|
|
|
displayHeaderFooter?: boolean,
|
|
|
|
|
headerTemplate?: string,
|
|
|
|
|
footerTemplate?: string,
|
|
|
|
|
printBackground?: boolean,
|
|
|
|
|
landscape?: boolean,
|
|
|
|
|
pageRanges?: string,
|
|
|
|
|
format?: string,
|
|
|
|
|
width?: string,
|
|
|
|
|
height?: string,
|
|
|
|
|
preferCSSPageSize?: boolean,
|
|
|
|
|
margin?: {
|
|
|
|
|
top?: string,
|
|
|
|
|
bottom?: string,
|
|
|
|
|
left?: string,
|
|
|
|
|
right?: string,
|
|
|
|
|
},
|
|
|
|
|
};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type PagePdfOptions = {
|
|
|
|
|
scale?: number,
|
|
|
|
|
displayHeaderFooter?: boolean,
|
|
|
|
|
headerTemplate?: string,
|
|
|
|
|
footerTemplate?: string,
|
|
|
|
|
printBackground?: boolean,
|
|
|
|
|
landscape?: boolean,
|
|
|
|
|
pageRanges?: string,
|
|
|
|
|
format?: string,
|
|
|
|
|
width?: string,
|
|
|
|
|
height?: string,
|
|
|
|
|
preferCSSPageSize?: boolean,
|
|
|
|
|
margin?: {
|
|
|
|
|
top?: string,
|
|
|
|
|
bottom?: string,
|
|
|
|
|
left?: string,
|
|
|
|
|
right?: string,
|
|
|
|
|
},
|
|
|
|
|
};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type PagePdfResult = {
|
|
|
|
|
pdf: Binary,
|
|
|
|
|
};
|
2021-04-02 03:47:14 +02:00
|
|
|
export type PageStartJSCoverageParams = {
|
2020-07-21 02:38:06 +02:00
|
|
|
resetOnNavigation?: boolean,
|
|
|
|
|
reportAnonymousScripts?: boolean,
|
|
|
|
|
};
|
2021-04-02 03:47:14 +02:00
|
|
|
export type PageStartJSCoverageOptions = {
|
2020-07-30 02:26:59 +02:00
|
|
|
resetOnNavigation?: boolean,
|
|
|
|
|
reportAnonymousScripts?: boolean,
|
|
|
|
|
};
|
2021-04-02 03:47:14 +02:00
|
|
|
export type PageStartJSCoverageResult = void;
|
|
|
|
|
export type PageStopJSCoverageParams = {};
|
|
|
|
|
export type PageStopJSCoverageOptions = {};
|
|
|
|
|
export type PageStopJSCoverageResult = {
|
2020-07-21 02:38:06 +02:00
|
|
|
entries: {
|
|
|
|
|
url: string,
|
|
|
|
|
scriptId: string,
|
|
|
|
|
source?: string,
|
|
|
|
|
functions: {
|
|
|
|
|
functionName: string,
|
|
|
|
|
isBlockCoverage: boolean,
|
|
|
|
|
ranges: {
|
|
|
|
|
startOffset: number,
|
|
|
|
|
endOffset: number,
|
|
|
|
|
count: number,
|
|
|
|
|
}[],
|
|
|
|
|
}[],
|
|
|
|
|
}[],
|
|
|
|
|
};
|
2021-04-02 03:47:14 +02:00
|
|
|
export type PageStartCSSCoverageParams = {
|
2020-07-21 02:38:06 +02:00
|
|
|
resetOnNavigation?: boolean,
|
|
|
|
|
};
|
2021-04-02 03:47:14 +02:00
|
|
|
export type PageStartCSSCoverageOptions = {
|
2020-07-30 02:26:59 +02:00
|
|
|
resetOnNavigation?: boolean,
|
|
|
|
|
};
|
2021-04-02 03:47:14 +02:00
|
|
|
export type PageStartCSSCoverageResult = void;
|
|
|
|
|
export type PageStopCSSCoverageParams = {};
|
|
|
|
|
export type PageStopCSSCoverageOptions = {};
|
|
|
|
|
export type PageStopCSSCoverageResult = {
|
2020-07-21 02:38:06 +02:00
|
|
|
entries: {
|
|
|
|
|
url: string,
|
|
|
|
|
text?: string,
|
|
|
|
|
ranges: {
|
|
|
|
|
start: number,
|
|
|
|
|
end: number,
|
|
|
|
|
}[],
|
|
|
|
|
}[],
|
2020-06-26 21:28:27 +02:00
|
|
|
};
|
2020-07-21 18:36:54 +02:00
|
|
|
export type PageBringToFrontParams = {};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type PageBringToFrontOptions = {};
|
2020-07-21 18:36:54 +02:00
|
|
|
export type PageBringToFrontResult = void;
|
2022-11-10 06:10:57 +01:00
|
|
|
export type PageUpdateSubscriptionParams = {
|
|
|
|
|
event: 'fileChooser' | 'request' | 'response' | 'requestFinished' | 'requestFailed',
|
|
|
|
|
enabled: boolean,
|
|
|
|
|
};
|
|
|
|
|
export type PageUpdateSubscriptionOptions = {
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
export type PageUpdateSubscriptionResult = void;
|
2020-06-26 01:05:36 +02:00
|
|
|
|
2021-08-30 18:43:18 +02:00
|
|
|
export interface PageEvents {
|
|
|
|
|
'bindingCall': PageBindingCallEvent;
|
|
|
|
|
'close': PageCloseEvent;
|
|
|
|
|
'crash': PageCrashEvent;
|
|
|
|
|
'download': PageDownloadEvent;
|
|
|
|
|
'fileChooser': PageFileChooserEvent;
|
|
|
|
|
'frameAttached': PageFrameAttachedEvent;
|
|
|
|
|
'frameDetached': PageFrameDetachedEvent;
|
|
|
|
|
'pageError': PagePageErrorEvent;
|
|
|
|
|
'route': PageRouteEvent;
|
|
|
|
|
'video': PageVideoEvent;
|
|
|
|
|
'webSocket': PageWebSocketEvent;
|
|
|
|
|
'worker': PageWorkerEvent;
|
|
|
|
|
}
|
|
|
|
|
|
2020-07-21 02:38:06 +02:00
|
|
|
// ----------- Frame -----------
|
|
|
|
|
export type FrameInitializer = {
|
|
|
|
|
url: string,
|
|
|
|
|
name: string,
|
|
|
|
|
parentFrame?: FrameChannel,
|
2021-11-02 01:12:19 +01:00
|
|
|
loadStates: LifecycleEvent[],
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
2021-11-18 00:26:01 +01:00
|
|
|
export interface FrameEventTarget {
|
2020-07-21 02:38:06 +02:00
|
|
|
on(event: 'loadstate', callback: (params: FrameLoadstateEvent) => void): this;
|
2020-07-16 03:48:19 +02:00
|
|
|
on(event: 'navigated', callback: (params: FrameNavigatedEvent) => void): this;
|
2021-11-18 00:26:01 +01:00
|
|
|
}
|
|
|
|
|
export interface FrameChannel extends FrameEventTarget, Channel {
|
|
|
|
|
_type_Frame: boolean;
|
2023-02-23 23:37:53 +01:00
|
|
|
evalOnSelector(params: FrameEvalOnSelectorParams, metadata?: CallMetadata): Promise<FrameEvalOnSelectorResult>;
|
|
|
|
|
evalOnSelectorAll(params: FrameEvalOnSelectorAllParams, metadata?: CallMetadata): Promise<FrameEvalOnSelectorAllResult>;
|
|
|
|
|
addScriptTag(params: FrameAddScriptTagParams, metadata?: CallMetadata): Promise<FrameAddScriptTagResult>;
|
|
|
|
|
addStyleTag(params: FrameAddStyleTagParams, metadata?: CallMetadata): Promise<FrameAddStyleTagResult>;
|
|
|
|
|
blur(params: FrameBlurParams, metadata?: CallMetadata): Promise<FrameBlurResult>;
|
|
|
|
|
check(params: FrameCheckParams, metadata?: CallMetadata): Promise<FrameCheckResult>;
|
|
|
|
|
click(params: FrameClickParams, metadata?: CallMetadata): Promise<FrameClickResult>;
|
|
|
|
|
content(params?: FrameContentParams, metadata?: CallMetadata): Promise<FrameContentResult>;
|
|
|
|
|
dragAndDrop(params: FrameDragAndDropParams, metadata?: CallMetadata): Promise<FrameDragAndDropResult>;
|
|
|
|
|
dblclick(params: FrameDblclickParams, metadata?: CallMetadata): Promise<FrameDblclickResult>;
|
|
|
|
|
dispatchEvent(params: FrameDispatchEventParams, metadata?: CallMetadata): Promise<FrameDispatchEventResult>;
|
|
|
|
|
evaluateExpression(params: FrameEvaluateExpressionParams, metadata?: CallMetadata): Promise<FrameEvaluateExpressionResult>;
|
|
|
|
|
evaluateExpressionHandle(params: FrameEvaluateExpressionHandleParams, metadata?: CallMetadata): Promise<FrameEvaluateExpressionHandleResult>;
|
|
|
|
|
fill(params: FrameFillParams, metadata?: CallMetadata): Promise<FrameFillResult>;
|
|
|
|
|
focus(params: FrameFocusParams, metadata?: CallMetadata): Promise<FrameFocusResult>;
|
|
|
|
|
frameElement(params?: FrameFrameElementParams, metadata?: CallMetadata): Promise<FrameFrameElementResult>;
|
|
|
|
|
highlight(params: FrameHighlightParams, metadata?: CallMetadata): Promise<FrameHighlightResult>;
|
|
|
|
|
getAttribute(params: FrameGetAttributeParams, metadata?: CallMetadata): Promise<FrameGetAttributeResult>;
|
|
|
|
|
goto(params: FrameGotoParams, metadata?: CallMetadata): Promise<FrameGotoResult>;
|
|
|
|
|
hover(params: FrameHoverParams, metadata?: CallMetadata): Promise<FrameHoverResult>;
|
|
|
|
|
innerHTML(params: FrameInnerHTMLParams, metadata?: CallMetadata): Promise<FrameInnerHTMLResult>;
|
|
|
|
|
innerText(params: FrameInnerTextParams, metadata?: CallMetadata): Promise<FrameInnerTextResult>;
|
|
|
|
|
inputValue(params: FrameInputValueParams, metadata?: CallMetadata): Promise<FrameInputValueResult>;
|
|
|
|
|
isChecked(params: FrameIsCheckedParams, metadata?: CallMetadata): Promise<FrameIsCheckedResult>;
|
|
|
|
|
isDisabled(params: FrameIsDisabledParams, metadata?: CallMetadata): Promise<FrameIsDisabledResult>;
|
|
|
|
|
isEnabled(params: FrameIsEnabledParams, metadata?: CallMetadata): Promise<FrameIsEnabledResult>;
|
|
|
|
|
isHidden(params: FrameIsHiddenParams, metadata?: CallMetadata): Promise<FrameIsHiddenResult>;
|
|
|
|
|
isVisible(params: FrameIsVisibleParams, metadata?: CallMetadata): Promise<FrameIsVisibleResult>;
|
|
|
|
|
isEditable(params: FrameIsEditableParams, metadata?: CallMetadata): Promise<FrameIsEditableResult>;
|
|
|
|
|
press(params: FramePressParams, metadata?: CallMetadata): Promise<FramePressResult>;
|
|
|
|
|
querySelector(params: FrameQuerySelectorParams, metadata?: CallMetadata): Promise<FrameQuerySelectorResult>;
|
|
|
|
|
querySelectorAll(params: FrameQuerySelectorAllParams, metadata?: CallMetadata): Promise<FrameQuerySelectorAllResult>;
|
|
|
|
|
queryCount(params: FrameQueryCountParams, metadata?: CallMetadata): Promise<FrameQueryCountResult>;
|
|
|
|
|
selectOption(params: FrameSelectOptionParams, metadata?: CallMetadata): Promise<FrameSelectOptionResult>;
|
|
|
|
|
setContent(params: FrameSetContentParams, metadata?: CallMetadata): Promise<FrameSetContentResult>;
|
|
|
|
|
setInputFiles(params: FrameSetInputFilesParams, metadata?: CallMetadata): Promise<FrameSetInputFilesResult>;
|
|
|
|
|
setInputFilePaths(params: FrameSetInputFilePathsParams, metadata?: CallMetadata): Promise<FrameSetInputFilePathsResult>;
|
|
|
|
|
tap(params: FrameTapParams, metadata?: CallMetadata): Promise<FrameTapResult>;
|
|
|
|
|
textContent(params: FrameTextContentParams, metadata?: CallMetadata): Promise<FrameTextContentResult>;
|
|
|
|
|
title(params?: FrameTitleParams, metadata?: CallMetadata): Promise<FrameTitleResult>;
|
|
|
|
|
type(params: FrameTypeParams, metadata?: CallMetadata): Promise<FrameTypeResult>;
|
|
|
|
|
uncheck(params: FrameUncheckParams, metadata?: CallMetadata): Promise<FrameUncheckResult>;
|
|
|
|
|
waitForTimeout(params: FrameWaitForTimeoutParams, metadata?: CallMetadata): Promise<FrameWaitForTimeoutResult>;
|
|
|
|
|
waitForFunction(params: FrameWaitForFunctionParams, metadata?: CallMetadata): Promise<FrameWaitForFunctionResult>;
|
|
|
|
|
waitForSelector(params: FrameWaitForSelectorParams, metadata?: CallMetadata): Promise<FrameWaitForSelectorResult>;
|
|
|
|
|
expect(params: FrameExpectParams, metadata?: CallMetadata): Promise<FrameExpectResult>;
|
2020-06-26 01:05:36 +02:00
|
|
|
}
|
2020-07-21 02:38:06 +02:00
|
|
|
export type FrameLoadstateEvent = {
|
2021-11-02 01:12:19 +01:00
|
|
|
add?: LifecycleEvent,
|
|
|
|
|
remove?: LifecycleEvent,
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
|
|
|
|
export type FrameNavigatedEvent = {
|
2020-06-26 21:28:27 +02:00
|
|
|
url: string,
|
|
|
|
|
name: string,
|
2020-07-21 02:38:06 +02:00
|
|
|
newDocument?: {
|
|
|
|
|
request?: RequestChannel,
|
|
|
|
|
},
|
|
|
|
|
error?: string,
|
|
|
|
|
};
|
|
|
|
|
export type FrameEvalOnSelectorParams = {
|
|
|
|
|
selector: string,
|
2021-07-27 07:00:23 +02:00
|
|
|
strict?: boolean,
|
2020-07-21 02:38:06 +02:00
|
|
|
expression: string,
|
2021-02-03 22:49:25 +01:00
|
|
|
isFunction?: boolean,
|
2020-07-21 02:38:06 +02:00
|
|
|
arg: SerializedArgument,
|
2020-07-30 02:26:59 +02:00
|
|
|
};
|
|
|
|
|
export type FrameEvalOnSelectorOptions = {
|
2021-07-27 07:00:23 +02:00
|
|
|
strict?: boolean,
|
2021-02-03 22:49:25 +01:00
|
|
|
isFunction?: boolean,
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
|
|
|
|
export type FrameEvalOnSelectorResult = {
|
2020-07-21 21:44:30 +02:00
|
|
|
value: SerializedValue,
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
|
|
|
|
export type FrameEvalOnSelectorAllParams = {
|
|
|
|
|
selector: string,
|
|
|
|
|
expression: string,
|
2021-02-03 22:49:25 +01:00
|
|
|
isFunction?: boolean,
|
2020-07-21 02:38:06 +02:00
|
|
|
arg: SerializedArgument,
|
2020-07-30 02:26:59 +02:00
|
|
|
};
|
|
|
|
|
export type FrameEvalOnSelectorAllOptions = {
|
2021-02-03 22:49:25 +01:00
|
|
|
isFunction?: boolean,
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
|
|
|
|
export type FrameEvalOnSelectorAllResult = {
|
2020-07-21 21:44:30 +02:00
|
|
|
value: SerializedValue,
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
|
|
|
|
export type FrameAddScriptTagParams = {
|
|
|
|
|
url?: string,
|
|
|
|
|
content?: string,
|
|
|
|
|
type?: string,
|
|
|
|
|
};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type FrameAddScriptTagOptions = {
|
|
|
|
|
url?: string,
|
|
|
|
|
content?: string,
|
|
|
|
|
type?: string,
|
|
|
|
|
};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type FrameAddScriptTagResult = {
|
|
|
|
|
element: ElementHandleChannel,
|
|
|
|
|
};
|
|
|
|
|
export type FrameAddStyleTagParams = {
|
|
|
|
|
url?: string,
|
|
|
|
|
content?: string,
|
|
|
|
|
};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type FrameAddStyleTagOptions = {
|
|
|
|
|
url?: string,
|
|
|
|
|
content?: string,
|
|
|
|
|
};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type FrameAddStyleTagResult = {
|
|
|
|
|
element: ElementHandleChannel,
|
|
|
|
|
};
|
2022-10-25 15:10:40 +02:00
|
|
|
export type FrameBlurParams = {
|
|
|
|
|
selector: string,
|
|
|
|
|
strict?: boolean,
|
|
|
|
|
timeout?: number,
|
|
|
|
|
};
|
|
|
|
|
export type FrameBlurOptions = {
|
|
|
|
|
strict?: boolean,
|
|
|
|
|
timeout?: number,
|
|
|
|
|
};
|
|
|
|
|
export type FrameBlurResult = void;
|
2020-07-21 02:38:06 +02:00
|
|
|
export type FrameCheckParams = {
|
|
|
|
|
selector: string,
|
2021-07-27 07:00:23 +02:00
|
|
|
strict?: boolean,
|
2020-07-21 02:38:06 +02:00
|
|
|
force?: boolean,
|
|
|
|
|
noWaitAfter?: boolean,
|
2021-04-12 21:41:25 +02:00
|
|
|
position?: Point,
|
2020-07-21 02:38:06 +02:00
|
|
|
timeout?: number,
|
2021-04-21 21:22:19 +02:00
|
|
|
trial?: boolean,
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type FrameCheckOptions = {
|
2021-07-27 07:00:23 +02:00
|
|
|
strict?: boolean,
|
2020-07-30 02:26:59 +02:00
|
|
|
force?: boolean,
|
|
|
|
|
noWaitAfter?: boolean,
|
2021-04-12 21:41:25 +02:00
|
|
|
position?: Point,
|
2020-07-30 02:26:59 +02:00
|
|
|
timeout?: number,
|
2021-04-21 21:22:19 +02:00
|
|
|
trial?: boolean,
|
2020-07-30 02:26:59 +02:00
|
|
|
};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type FrameCheckResult = void;
|
|
|
|
|
export type FrameClickParams = {
|
|
|
|
|
selector: string,
|
2021-07-27 07:00:23 +02:00
|
|
|
strict?: boolean,
|
2020-07-21 02:38:06 +02:00
|
|
|
force?: boolean,
|
|
|
|
|
noWaitAfter?: boolean,
|
|
|
|
|
modifiers?: ('Alt' | 'Control' | 'Meta' | 'Shift')[],
|
2020-12-10 00:06:57 +01:00
|
|
|
position?: Point,
|
2020-07-21 02:38:06 +02:00
|
|
|
delay?: number,
|
|
|
|
|
button?: 'left' | 'right' | 'middle',
|
|
|
|
|
clickCount?: number,
|
|
|
|
|
timeout?: number,
|
2021-04-21 21:22:19 +02:00
|
|
|
trial?: boolean,
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type FrameClickOptions = {
|
2021-07-27 07:00:23 +02:00
|
|
|
strict?: boolean,
|
2020-07-30 02:26:59 +02:00
|
|
|
force?: boolean,
|
|
|
|
|
noWaitAfter?: boolean,
|
|
|
|
|
modifiers?: ('Alt' | 'Control' | 'Meta' | 'Shift')[],
|
2020-12-10 00:06:57 +01:00
|
|
|
position?: Point,
|
2020-07-30 02:26:59 +02:00
|
|
|
delay?: number,
|
|
|
|
|
button?: 'left' | 'right' | 'middle',
|
|
|
|
|
clickCount?: number,
|
|
|
|
|
timeout?: number,
|
2021-04-21 21:22:19 +02:00
|
|
|
trial?: boolean,
|
2020-07-30 02:26:59 +02:00
|
|
|
};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type FrameClickResult = void;
|
|
|
|
|
export type FrameContentParams = {};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type FrameContentOptions = {};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type FrameContentResult = {
|
|
|
|
|
value: string,
|
|
|
|
|
};
|
2021-07-19 19:42:55 +02:00
|
|
|
export type FrameDragAndDropParams = {
|
|
|
|
|
source: string,
|
|
|
|
|
target: string,
|
|
|
|
|
force?: boolean,
|
|
|
|
|
noWaitAfter?: boolean,
|
|
|
|
|
timeout?: number,
|
|
|
|
|
trial?: boolean,
|
2021-08-03 19:12:34 +02:00
|
|
|
sourcePosition?: Point,
|
|
|
|
|
targetPosition?: Point,
|
2021-11-22 20:27:26 +01:00
|
|
|
strict?: boolean,
|
2021-07-19 19:42:55 +02:00
|
|
|
};
|
|
|
|
|
export type FrameDragAndDropOptions = {
|
|
|
|
|
force?: boolean,
|
|
|
|
|
noWaitAfter?: boolean,
|
|
|
|
|
timeout?: number,
|
|
|
|
|
trial?: boolean,
|
2021-08-03 19:12:34 +02:00
|
|
|
sourcePosition?: Point,
|
|
|
|
|
targetPosition?: Point,
|
2021-11-22 20:27:26 +01:00
|
|
|
strict?: boolean,
|
2021-07-19 19:42:55 +02:00
|
|
|
};
|
|
|
|
|
export type FrameDragAndDropResult = void;
|
2020-07-21 02:38:06 +02:00
|
|
|
export type FrameDblclickParams = {
|
|
|
|
|
selector: string,
|
2021-07-27 07:00:23 +02:00
|
|
|
strict?: boolean,
|
2020-07-21 02:38:06 +02:00
|
|
|
force?: boolean,
|
2020-07-29 20:45:19 +02:00
|
|
|
noWaitAfter?: boolean,
|
2020-07-21 02:38:06 +02:00
|
|
|
modifiers?: ('Alt' | 'Control' | 'Meta' | 'Shift')[],
|
2020-12-10 00:06:57 +01:00
|
|
|
position?: Point,
|
2020-07-21 02:38:06 +02:00
|
|
|
delay?: number,
|
|
|
|
|
button?: 'left' | 'right' | 'middle',
|
|
|
|
|
timeout?: number,
|
2021-04-21 21:22:19 +02:00
|
|
|
trial?: boolean,
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type FrameDblclickOptions = {
|
2021-07-27 07:00:23 +02:00
|
|
|
strict?: boolean,
|
2020-07-30 02:26:59 +02:00
|
|
|
force?: boolean,
|
|
|
|
|
noWaitAfter?: boolean,
|
|
|
|
|
modifiers?: ('Alt' | 'Control' | 'Meta' | 'Shift')[],
|
2020-12-10 00:06:57 +01:00
|
|
|
position?: Point,
|
2020-07-30 02:26:59 +02:00
|
|
|
delay?: number,
|
|
|
|
|
button?: 'left' | 'right' | 'middle',
|
|
|
|
|
timeout?: number,
|
2021-04-21 21:22:19 +02:00
|
|
|
trial?: boolean,
|
2020-07-30 02:26:59 +02:00
|
|
|
};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type FrameDblclickResult = void;
|
|
|
|
|
export type FrameDispatchEventParams = {
|
|
|
|
|
selector: string,
|
2021-07-27 07:00:23 +02:00
|
|
|
strict?: boolean,
|
2020-07-21 02:38:06 +02:00
|
|
|
type: string,
|
|
|
|
|
eventInit: SerializedArgument,
|
|
|
|
|
timeout?: number,
|
|
|
|
|
};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type FrameDispatchEventOptions = {
|
2021-07-27 07:00:23 +02:00
|
|
|
strict?: boolean,
|
2020-07-30 02:26:59 +02:00
|
|
|
timeout?: number,
|
|
|
|
|
};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type FrameDispatchEventResult = void;
|
|
|
|
|
export type FrameEvaluateExpressionParams = {
|
|
|
|
|
expression: string,
|
2021-02-03 22:49:25 +01:00
|
|
|
isFunction?: boolean,
|
2022-11-30 01:57:11 +01:00
|
|
|
exposeUtilityScript?: boolean,
|
2020-07-21 02:38:06 +02:00
|
|
|
arg: SerializedArgument,
|
2020-07-30 02:26:59 +02:00
|
|
|
};
|
|
|
|
|
export type FrameEvaluateExpressionOptions = {
|
2021-02-03 22:49:25 +01:00
|
|
|
isFunction?: boolean,
|
2022-11-30 01:57:11 +01:00
|
|
|
exposeUtilityScript?: boolean,
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
|
|
|
|
export type FrameEvaluateExpressionResult = {
|
2020-07-21 21:44:30 +02:00
|
|
|
value: SerializedValue,
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
|
|
|
|
export type FrameEvaluateExpressionHandleParams = {
|
|
|
|
|
expression: string,
|
2021-02-03 22:49:25 +01:00
|
|
|
isFunction?: boolean,
|
2020-07-21 02:38:06 +02:00
|
|
|
arg: SerializedArgument,
|
2020-07-30 02:26:59 +02:00
|
|
|
};
|
|
|
|
|
export type FrameEvaluateExpressionHandleOptions = {
|
2021-02-03 22:49:25 +01:00
|
|
|
isFunction?: boolean,
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
|
|
|
|
export type FrameEvaluateExpressionHandleResult = {
|
|
|
|
|
handle: JSHandleChannel,
|
|
|
|
|
};
|
|
|
|
|
export type FrameFillParams = {
|
|
|
|
|
selector: string,
|
2021-07-27 07:00:23 +02:00
|
|
|
strict?: boolean,
|
2020-07-21 02:38:06 +02:00
|
|
|
value: string,
|
2021-06-24 17:18:09 +02:00
|
|
|
force?: boolean,
|
2020-07-21 02:38:06 +02:00
|
|
|
timeout?: number,
|
|
|
|
|
noWaitAfter?: boolean,
|
|
|
|
|
};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type FrameFillOptions = {
|
2021-07-27 07:00:23 +02:00
|
|
|
strict?: boolean,
|
2021-06-24 17:18:09 +02:00
|
|
|
force?: boolean,
|
2020-07-30 02:26:59 +02:00
|
|
|
timeout?: number,
|
|
|
|
|
noWaitAfter?: boolean,
|
|
|
|
|
};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type FrameFillResult = void;
|
|
|
|
|
export type FrameFocusParams = {
|
|
|
|
|
selector: string,
|
2021-07-27 07:00:23 +02:00
|
|
|
strict?: boolean,
|
2020-07-21 02:38:06 +02:00
|
|
|
timeout?: number,
|
|
|
|
|
};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type FrameFocusOptions = {
|
2021-07-27 07:00:23 +02:00
|
|
|
strict?: boolean,
|
2020-07-30 02:26:59 +02:00
|
|
|
timeout?: number,
|
|
|
|
|
};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type FrameFocusResult = void;
|
|
|
|
|
export type FrameFrameElementParams = {};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type FrameFrameElementOptions = {};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type FrameFrameElementResult = {
|
|
|
|
|
element: ElementHandleChannel,
|
|
|
|
|
};
|
2022-01-12 16:37:48 +01:00
|
|
|
export type FrameHighlightParams = {
|
|
|
|
|
selector: string,
|
|
|
|
|
};
|
|
|
|
|
export type FrameHighlightOptions = {
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
export type FrameHighlightResult = void;
|
2020-07-21 02:38:06 +02:00
|
|
|
export type FrameGetAttributeParams = {
|
|
|
|
|
selector: string,
|
2021-07-27 07:00:23 +02:00
|
|
|
strict?: boolean,
|
2020-07-21 02:38:06 +02:00
|
|
|
name: string,
|
|
|
|
|
timeout?: number,
|
|
|
|
|
};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type FrameGetAttributeOptions = {
|
2021-07-27 07:00:23 +02:00
|
|
|
strict?: boolean,
|
2020-07-30 02:26:59 +02:00
|
|
|
timeout?: number,
|
|
|
|
|
};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type FrameGetAttributeResult = {
|
|
|
|
|
value?: string,
|
|
|
|
|
};
|
|
|
|
|
export type FrameGotoParams = {
|
|
|
|
|
url: string,
|
|
|
|
|
timeout?: number,
|
2021-11-02 01:12:19 +01:00
|
|
|
waitUntil?: LifecycleEvent,
|
2020-07-21 02:38:06 +02:00
|
|
|
referer?: string,
|
|
|
|
|
};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type FrameGotoOptions = {
|
|
|
|
|
timeout?: number,
|
2021-11-02 01:12:19 +01:00
|
|
|
waitUntil?: LifecycleEvent,
|
2020-07-30 02:26:59 +02:00
|
|
|
referer?: string,
|
|
|
|
|
};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type FrameGotoResult = {
|
|
|
|
|
response?: ResponseChannel,
|
|
|
|
|
};
|
|
|
|
|
export type FrameHoverParams = {
|
|
|
|
|
selector: string,
|
2021-07-27 07:00:23 +02:00
|
|
|
strict?: boolean,
|
2020-07-21 02:38:06 +02:00
|
|
|
force?: boolean,
|
|
|
|
|
modifiers?: ('Alt' | 'Control' | 'Meta' | 'Shift')[],
|
2020-12-10 00:06:57 +01:00
|
|
|
position?: Point,
|
2020-07-21 02:38:06 +02:00
|
|
|
timeout?: number,
|
2021-04-21 21:22:19 +02:00
|
|
|
trial?: boolean,
|
2022-10-07 21:43:48 +02:00
|
|
|
noWaitAfter?: boolean,
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type FrameHoverOptions = {
|
2021-07-27 07:00:23 +02:00
|
|
|
strict?: boolean,
|
2020-07-30 02:26:59 +02:00
|
|
|
force?: boolean,
|
|
|
|
|
modifiers?: ('Alt' | 'Control' | 'Meta' | 'Shift')[],
|
2020-12-10 00:06:57 +01:00
|
|
|
position?: Point,
|
2020-07-30 02:26:59 +02:00
|
|
|
timeout?: number,
|
2021-04-21 21:22:19 +02:00
|
|
|
trial?: boolean,
|
2022-10-07 21:43:48 +02:00
|
|
|
noWaitAfter?: boolean,
|
2020-07-30 02:26:59 +02:00
|
|
|
};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type FrameHoverResult = void;
|
|
|
|
|
export type FrameInnerHTMLParams = {
|
|
|
|
|
selector: string,
|
2021-07-27 07:00:23 +02:00
|
|
|
strict?: boolean,
|
2020-07-21 02:38:06 +02:00
|
|
|
timeout?: number,
|
|
|
|
|
};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type FrameInnerHTMLOptions = {
|
2021-07-27 07:00:23 +02:00
|
|
|
strict?: boolean,
|
2020-07-30 02:26:59 +02:00
|
|
|
timeout?: number,
|
|
|
|
|
};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type FrameInnerHTMLResult = {
|
|
|
|
|
value: string,
|
|
|
|
|
};
|
|
|
|
|
export type FrameInnerTextParams = {
|
|
|
|
|
selector: string,
|
2021-07-27 07:00:23 +02:00
|
|
|
strict?: boolean,
|
2020-07-21 02:38:06 +02:00
|
|
|
timeout?: number,
|
|
|
|
|
};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type FrameInnerTextOptions = {
|
2021-07-27 07:00:23 +02:00
|
|
|
strict?: boolean,
|
2020-07-30 02:26:59 +02:00
|
|
|
timeout?: number,
|
|
|
|
|
};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type FrameInnerTextResult = {
|
|
|
|
|
value: string,
|
|
|
|
|
};
|
2021-06-24 07:19:20 +02:00
|
|
|
export type FrameInputValueParams = {
|
|
|
|
|
selector: string,
|
2021-07-27 07:00:23 +02:00
|
|
|
strict?: boolean,
|
2021-06-24 07:19:20 +02:00
|
|
|
timeout?: number,
|
|
|
|
|
};
|
|
|
|
|
export type FrameInputValueOptions = {
|
2021-07-27 07:00:23 +02:00
|
|
|
strict?: boolean,
|
2021-06-24 07:19:20 +02:00
|
|
|
timeout?: number,
|
|
|
|
|
};
|
|
|
|
|
export type FrameInputValueResult = {
|
|
|
|
|
value: string,
|
|
|
|
|
};
|
2021-01-09 02:36:17 +01:00
|
|
|
export type FrameIsCheckedParams = {
|
|
|
|
|
selector: string,
|
2021-07-27 07:00:23 +02:00
|
|
|
strict?: boolean,
|
2021-01-09 02:36:17 +01:00
|
|
|
timeout?: number,
|
|
|
|
|
};
|
|
|
|
|
export type FrameIsCheckedOptions = {
|
2021-07-27 07:00:23 +02:00
|
|
|
strict?: boolean,
|
2021-01-09 02:36:17 +01:00
|
|
|
timeout?: number,
|
|
|
|
|
};
|
|
|
|
|
export type FrameIsCheckedResult = {
|
|
|
|
|
value: boolean,
|
|
|
|
|
};
|
2021-01-08 21:27:54 +01:00
|
|
|
export type FrameIsDisabledParams = {
|
|
|
|
|
selector: string,
|
2021-07-27 07:00:23 +02:00
|
|
|
strict?: boolean,
|
2021-01-08 21:27:54 +01:00
|
|
|
timeout?: number,
|
|
|
|
|
};
|
|
|
|
|
export type FrameIsDisabledOptions = {
|
2021-07-27 07:00:23 +02:00
|
|
|
strict?: boolean,
|
2021-01-08 21:27:54 +01:00
|
|
|
timeout?: number,
|
|
|
|
|
};
|
|
|
|
|
export type FrameIsDisabledResult = {
|
|
|
|
|
value: boolean,
|
|
|
|
|
};
|
|
|
|
|
export type FrameIsEnabledParams = {
|
|
|
|
|
selector: string,
|
2021-07-27 07:00:23 +02:00
|
|
|
strict?: boolean,
|
2021-01-08 21:27:54 +01:00
|
|
|
timeout?: number,
|
|
|
|
|
};
|
|
|
|
|
export type FrameIsEnabledOptions = {
|
2021-07-27 07:00:23 +02:00
|
|
|
strict?: boolean,
|
2021-01-08 21:27:54 +01:00
|
|
|
timeout?: number,
|
|
|
|
|
};
|
|
|
|
|
export type FrameIsEnabledResult = {
|
|
|
|
|
value: boolean,
|
|
|
|
|
};
|
|
|
|
|
export type FrameIsHiddenParams = {
|
|
|
|
|
selector: string,
|
2021-07-27 07:00:23 +02:00
|
|
|
strict?: boolean,
|
2021-01-08 21:27:54 +01:00
|
|
|
};
|
|
|
|
|
export type FrameIsHiddenOptions = {
|
2021-07-27 07:00:23 +02:00
|
|
|
strict?: boolean,
|
2021-01-08 21:27:54 +01:00
|
|
|
};
|
|
|
|
|
export type FrameIsHiddenResult = {
|
|
|
|
|
value: boolean,
|
|
|
|
|
};
|
|
|
|
|
export type FrameIsVisibleParams = {
|
|
|
|
|
selector: string,
|
2021-07-27 07:00:23 +02:00
|
|
|
strict?: boolean,
|
2021-01-08 21:27:54 +01:00
|
|
|
};
|
|
|
|
|
export type FrameIsVisibleOptions = {
|
2021-07-27 07:00:23 +02:00
|
|
|
strict?: boolean,
|
2021-01-08 21:27:54 +01:00
|
|
|
};
|
|
|
|
|
export type FrameIsVisibleResult = {
|
|
|
|
|
value: boolean,
|
|
|
|
|
};
|
|
|
|
|
export type FrameIsEditableParams = {
|
|
|
|
|
selector: string,
|
2021-07-27 07:00:23 +02:00
|
|
|
strict?: boolean,
|
2021-01-08 21:27:54 +01:00
|
|
|
timeout?: number,
|
|
|
|
|
};
|
|
|
|
|
export type FrameIsEditableOptions = {
|
2021-07-27 07:00:23 +02:00
|
|
|
strict?: boolean,
|
2021-01-08 21:27:54 +01:00
|
|
|
timeout?: number,
|
|
|
|
|
};
|
|
|
|
|
export type FrameIsEditableResult = {
|
|
|
|
|
value: boolean,
|
|
|
|
|
};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type FramePressParams = {
|
|
|
|
|
selector: string,
|
2021-07-27 07:00:23 +02:00
|
|
|
strict?: boolean,
|
2020-07-21 02:38:06 +02:00
|
|
|
key: string,
|
|
|
|
|
delay?: number,
|
|
|
|
|
noWaitAfter?: boolean,
|
|
|
|
|
timeout?: number,
|
|
|
|
|
};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type FramePressOptions = {
|
2021-07-27 07:00:23 +02:00
|
|
|
strict?: boolean,
|
2020-07-30 02:26:59 +02:00
|
|
|
delay?: number,
|
|
|
|
|
noWaitAfter?: boolean,
|
|
|
|
|
timeout?: number,
|
|
|
|
|
};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type FramePressResult = void;
|
|
|
|
|
export type FrameQuerySelectorParams = {
|
|
|
|
|
selector: string,
|
2021-07-27 07:00:23 +02:00
|
|
|
strict?: boolean,
|
2020-07-30 02:26:59 +02:00
|
|
|
};
|
|
|
|
|
export type FrameQuerySelectorOptions = {
|
2021-07-27 07:00:23 +02:00
|
|
|
strict?: boolean,
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
|
|
|
|
export type FrameQuerySelectorResult = {
|
|
|
|
|
element?: ElementHandleChannel,
|
|
|
|
|
};
|
|
|
|
|
export type FrameQuerySelectorAllParams = {
|
|
|
|
|
selector: string,
|
2020-07-30 02:26:59 +02:00
|
|
|
};
|
|
|
|
|
export type FrameQuerySelectorAllOptions = {
|
2021-08-25 16:10:40 +02:00
|
|
|
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
|
|
|
|
export type FrameQuerySelectorAllResult = {
|
|
|
|
|
elements: ElementHandleChannel[],
|
|
|
|
|
};
|
2022-01-08 00:52:14 +01:00
|
|
|
export type FrameQueryCountParams = {
|
|
|
|
|
selector: string,
|
|
|
|
|
};
|
|
|
|
|
export type FrameQueryCountOptions = {
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
export type FrameQueryCountResult = {
|
|
|
|
|
value: number,
|
|
|
|
|
};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type FrameSelectOptionParams = {
|
|
|
|
|
selector: string,
|
2021-07-27 07:00:23 +02:00
|
|
|
strict?: boolean,
|
2020-07-21 02:38:06 +02:00
|
|
|
elements?: ElementHandleChannel[],
|
|
|
|
|
options?: {
|
2022-12-07 18:04:32 +01:00
|
|
|
valueOrLabel?: string,
|
2020-07-21 02:38:06 +02:00
|
|
|
value?: string,
|
|
|
|
|
label?: string,
|
|
|
|
|
index?: number,
|
|
|
|
|
}[],
|
2021-06-24 17:18:09 +02:00
|
|
|
force?: boolean,
|
2020-07-21 02:38:06 +02:00
|
|
|
timeout?: number,
|
|
|
|
|
noWaitAfter?: boolean,
|
|
|
|
|
};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type FrameSelectOptionOptions = {
|
2021-07-27 07:00:23 +02:00
|
|
|
strict?: boolean,
|
2020-07-30 02:26:59 +02:00
|
|
|
elements?: ElementHandleChannel[],
|
|
|
|
|
options?: {
|
2022-12-07 18:04:32 +01:00
|
|
|
valueOrLabel?: string,
|
2020-07-30 02:26:59 +02:00
|
|
|
value?: string,
|
|
|
|
|
label?: string,
|
|
|
|
|
index?: number,
|
|
|
|
|
}[],
|
2021-06-24 17:18:09 +02:00
|
|
|
force?: boolean,
|
2020-07-30 02:26:59 +02:00
|
|
|
timeout?: number,
|
|
|
|
|
noWaitAfter?: boolean,
|
|
|
|
|
};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type FrameSelectOptionResult = {
|
|
|
|
|
values: string[],
|
|
|
|
|
};
|
|
|
|
|
export type FrameSetContentParams = {
|
|
|
|
|
html: string,
|
|
|
|
|
timeout?: number,
|
2021-11-02 01:12:19 +01:00
|
|
|
waitUntil?: LifecycleEvent,
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type FrameSetContentOptions = {
|
|
|
|
|
timeout?: number,
|
2021-11-02 01:12:19 +01:00
|
|
|
waitUntil?: LifecycleEvent,
|
2020-07-30 02:26:59 +02:00
|
|
|
};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type FrameSetContentResult = void;
|
|
|
|
|
export type FrameSetInputFilesParams = {
|
|
|
|
|
selector: string,
|
2021-07-27 07:00:23 +02:00
|
|
|
strict?: boolean,
|
2020-07-21 02:38:06 +02:00
|
|
|
files: {
|
|
|
|
|
name: string,
|
2021-05-19 03:30:20 +02:00
|
|
|
mimeType?: string,
|
2020-10-28 18:55:20 +01:00
|
|
|
buffer: Binary,
|
2020-07-21 02:38:06 +02:00
|
|
|
}[],
|
|
|
|
|
timeout?: number,
|
|
|
|
|
noWaitAfter?: boolean,
|
|
|
|
|
};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type FrameSetInputFilesOptions = {
|
2021-07-27 07:00:23 +02:00
|
|
|
strict?: boolean,
|
2020-07-30 02:26:59 +02:00
|
|
|
timeout?: number,
|
|
|
|
|
noWaitAfter?: boolean,
|
|
|
|
|
};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type FrameSetInputFilesResult = void;
|
2022-03-18 17:00:52 +01:00
|
|
|
export type FrameSetInputFilePathsParams = {
|
|
|
|
|
selector: string,
|
|
|
|
|
strict?: boolean,
|
|
|
|
|
localPaths?: string[],
|
|
|
|
|
streams?: WritableStreamChannel[],
|
|
|
|
|
timeout?: number,
|
|
|
|
|
noWaitAfter?: boolean,
|
|
|
|
|
};
|
|
|
|
|
export type FrameSetInputFilePathsOptions = {
|
|
|
|
|
strict?: boolean,
|
|
|
|
|
localPaths?: string[],
|
|
|
|
|
streams?: WritableStreamChannel[],
|
|
|
|
|
timeout?: number,
|
|
|
|
|
noWaitAfter?: boolean,
|
|
|
|
|
};
|
|
|
|
|
export type FrameSetInputFilePathsResult = void;
|
2020-10-19 19:07:33 +02:00
|
|
|
export type FrameTapParams = {
|
|
|
|
|
selector: string,
|
2021-07-27 07:00:23 +02:00
|
|
|
strict?: boolean,
|
2020-10-19 19:07:33 +02:00
|
|
|
force?: boolean,
|
|
|
|
|
noWaitAfter?: boolean,
|
|
|
|
|
modifiers?: ('Alt' | 'Control' | 'Meta' | 'Shift')[],
|
2020-12-10 00:06:57 +01:00
|
|
|
position?: Point,
|
2020-10-19 19:07:33 +02:00
|
|
|
timeout?: number,
|
2021-04-21 21:22:19 +02:00
|
|
|
trial?: boolean,
|
2020-10-19 19:07:33 +02:00
|
|
|
};
|
|
|
|
|
export type FrameTapOptions = {
|
2021-07-27 07:00:23 +02:00
|
|
|
strict?: boolean,
|
2020-10-19 19:07:33 +02:00
|
|
|
force?: boolean,
|
|
|
|
|
noWaitAfter?: boolean,
|
|
|
|
|
modifiers?: ('Alt' | 'Control' | 'Meta' | 'Shift')[],
|
2020-12-10 00:06:57 +01:00
|
|
|
position?: Point,
|
2020-10-19 19:07:33 +02:00
|
|
|
timeout?: number,
|
2021-04-21 21:22:19 +02:00
|
|
|
trial?: boolean,
|
2020-10-19 19:07:33 +02:00
|
|
|
};
|
|
|
|
|
export type FrameTapResult = void;
|
2020-07-21 02:38:06 +02:00
|
|
|
export type FrameTextContentParams = {
|
|
|
|
|
selector: string,
|
2021-07-27 07:00:23 +02:00
|
|
|
strict?: boolean,
|
2020-07-21 02:38:06 +02:00
|
|
|
timeout?: number,
|
|
|
|
|
};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type FrameTextContentOptions = {
|
2021-07-27 07:00:23 +02:00
|
|
|
strict?: boolean,
|
2020-07-30 02:26:59 +02:00
|
|
|
timeout?: number,
|
|
|
|
|
};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type FrameTextContentResult = {
|
|
|
|
|
value?: string,
|
|
|
|
|
};
|
|
|
|
|
export type FrameTitleParams = {};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type FrameTitleOptions = {};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type FrameTitleResult = {
|
|
|
|
|
value: string,
|
|
|
|
|
};
|
|
|
|
|
export type FrameTypeParams = {
|
|
|
|
|
selector: string,
|
2021-07-27 07:00:23 +02:00
|
|
|
strict?: boolean,
|
2020-07-21 02:38:06 +02:00
|
|
|
text: string,
|
|
|
|
|
delay?: number,
|
|
|
|
|
noWaitAfter?: boolean,
|
|
|
|
|
timeout?: number,
|
|
|
|
|
};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type FrameTypeOptions = {
|
2021-07-27 07:00:23 +02:00
|
|
|
strict?: boolean,
|
2020-07-30 02:26:59 +02:00
|
|
|
delay?: number,
|
|
|
|
|
noWaitAfter?: boolean,
|
|
|
|
|
timeout?: number,
|
|
|
|
|
};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type FrameTypeResult = void;
|
|
|
|
|
export type FrameUncheckParams = {
|
|
|
|
|
selector: string,
|
2021-07-27 07:00:23 +02:00
|
|
|
strict?: boolean,
|
2020-07-21 02:38:06 +02:00
|
|
|
force?: boolean,
|
|
|
|
|
noWaitAfter?: boolean,
|
2021-04-12 21:41:25 +02:00
|
|
|
position?: Point,
|
2020-07-21 02:38:06 +02:00
|
|
|
timeout?: number,
|
2021-04-21 21:22:19 +02:00
|
|
|
trial?: boolean,
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type FrameUncheckOptions = {
|
2021-07-27 07:00:23 +02:00
|
|
|
strict?: boolean,
|
2020-07-30 02:26:59 +02:00
|
|
|
force?: boolean,
|
|
|
|
|
noWaitAfter?: boolean,
|
2021-04-12 21:41:25 +02:00
|
|
|
position?: Point,
|
2020-07-30 02:26:59 +02:00
|
|
|
timeout?: number,
|
2021-04-21 21:22:19 +02:00
|
|
|
trial?: boolean,
|
2020-07-30 02:26:59 +02:00
|
|
|
};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type FrameUncheckResult = void;
|
2021-09-21 22:06:14 +02:00
|
|
|
export type FrameWaitForTimeoutParams = {
|
|
|
|
|
timeout: number,
|
|
|
|
|
};
|
|
|
|
|
export type FrameWaitForTimeoutOptions = {
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
export type FrameWaitForTimeoutResult = void;
|
2020-07-21 02:38:06 +02:00
|
|
|
export type FrameWaitForFunctionParams = {
|
|
|
|
|
expression: string,
|
2021-02-03 22:49:25 +01:00
|
|
|
isFunction?: boolean,
|
2020-07-21 02:38:06 +02:00
|
|
|
arg: SerializedArgument,
|
|
|
|
|
timeout?: number,
|
2020-07-21 17:26:48 +02:00
|
|
|
pollingInterval?: number,
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type FrameWaitForFunctionOptions = {
|
2021-02-03 22:49:25 +01:00
|
|
|
isFunction?: boolean,
|
2020-07-30 02:26:59 +02:00
|
|
|
timeout?: number,
|
|
|
|
|
pollingInterval?: number,
|
|
|
|
|
};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type FrameWaitForFunctionResult = {
|
|
|
|
|
handle: JSHandleChannel,
|
|
|
|
|
};
|
|
|
|
|
export type FrameWaitForSelectorParams = {
|
|
|
|
|
selector: string,
|
2021-07-27 07:00:23 +02:00
|
|
|
strict?: boolean,
|
2020-07-21 02:38:06 +02:00
|
|
|
timeout?: number,
|
|
|
|
|
state?: 'attached' | 'detached' | 'visible' | 'hidden',
|
2021-09-28 22:57:11 +02:00
|
|
|
omitReturnValue?: boolean,
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type FrameWaitForSelectorOptions = {
|
2021-07-27 07:00:23 +02:00
|
|
|
strict?: boolean,
|
2020-07-30 02:26:59 +02:00
|
|
|
timeout?: number,
|
|
|
|
|
state?: 'attached' | 'detached' | 'visible' | 'hidden',
|
2021-09-28 22:57:11 +02:00
|
|
|
omitReturnValue?: boolean,
|
2020-07-30 02:26:59 +02:00
|
|
|
};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type FrameWaitForSelectorResult = {
|
|
|
|
|
element?: ElementHandleChannel,
|
2020-06-26 21:28:27 +02:00
|
|
|
};
|
2021-09-24 01:46:46 +02:00
|
|
|
export type FrameExpectParams = {
|
|
|
|
|
selector: string,
|
|
|
|
|
expression: string,
|
2021-09-24 20:06:30 +02:00
|
|
|
expressionArg?: any,
|
|
|
|
|
expectedText?: ExpectedTextValue[],
|
|
|
|
|
expectedNumber?: number,
|
|
|
|
|
expectedValue?: SerializedArgument,
|
|
|
|
|
useInnerText?: boolean,
|
2021-10-12 18:01:46 +02:00
|
|
|
isNot: boolean,
|
2021-09-24 01:46:46 +02:00
|
|
|
timeout?: number,
|
|
|
|
|
};
|
|
|
|
|
export type FrameExpectOptions = {
|
2021-09-24 20:06:30 +02:00
|
|
|
expressionArg?: any,
|
|
|
|
|
expectedText?: ExpectedTextValue[],
|
|
|
|
|
expectedNumber?: number,
|
|
|
|
|
expectedValue?: SerializedArgument,
|
|
|
|
|
useInnerText?: boolean,
|
2021-09-24 01:46:46 +02:00
|
|
|
timeout?: number,
|
|
|
|
|
};
|
|
|
|
|
export type FrameExpectResult = {
|
2021-10-13 17:56:57 +02:00
|
|
|
matches: boolean,
|
2021-09-24 20:06:30 +02:00
|
|
|
received?: SerializedValue,
|
2022-11-17 02:00:42 +01:00
|
|
|
timedOut?: boolean,
|
2021-09-24 20:06:30 +02:00
|
|
|
log?: string[],
|
2021-09-24 01:46:46 +02:00
|
|
|
};
|
2020-06-26 01:05:36 +02:00
|
|
|
|
2021-08-30 18:43:18 +02:00
|
|
|
export interface FrameEvents {
|
|
|
|
|
'loadstate': FrameLoadstateEvent;
|
|
|
|
|
'navigated': FrameNavigatedEvent;
|
|
|
|
|
}
|
|
|
|
|
|
2020-07-21 02:38:06 +02:00
|
|
|
// ----------- Worker -----------
|
2020-06-30 19:55:11 +02:00
|
|
|
export type WorkerInitializer = {
|
|
|
|
|
url: string,
|
|
|
|
|
};
|
2021-11-18 00:26:01 +01:00
|
|
|
export interface WorkerEventTarget {
|
2020-08-08 00:40:21 +02:00
|
|
|
on(event: 'close', callback: (params: WorkerCloseEvent) => void): this;
|
2021-11-18 00:26:01 +01:00
|
|
|
}
|
|
|
|
|
export interface WorkerChannel extends WorkerEventTarget, Channel {
|
|
|
|
|
_type_Worker: boolean;
|
2023-02-23 23:37:53 +01:00
|
|
|
evaluateExpression(params: WorkerEvaluateExpressionParams, metadata?: CallMetadata): Promise<WorkerEvaluateExpressionResult>;
|
|
|
|
|
evaluateExpressionHandle(params: WorkerEvaluateExpressionHandleParams, metadata?: CallMetadata): Promise<WorkerEvaluateExpressionHandleResult>;
|
2020-07-21 02:38:06 +02:00
|
|
|
}
|
2020-08-08 00:40:21 +02:00
|
|
|
export type WorkerCloseEvent = {};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type WorkerEvaluateExpressionParams = {
|
|
|
|
|
expression: string,
|
2021-02-03 22:49:25 +01:00
|
|
|
isFunction?: boolean,
|
2020-07-21 02:38:06 +02:00
|
|
|
arg: SerializedArgument,
|
2020-07-30 02:26:59 +02:00
|
|
|
};
|
|
|
|
|
export type WorkerEvaluateExpressionOptions = {
|
2021-02-03 22:49:25 +01:00
|
|
|
isFunction?: boolean,
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
|
|
|
|
export type WorkerEvaluateExpressionResult = {
|
2020-07-21 21:44:30 +02:00
|
|
|
value: SerializedValue,
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
|
|
|
|
export type WorkerEvaluateExpressionHandleParams = {
|
|
|
|
|
expression: string,
|
2021-02-03 22:49:25 +01:00
|
|
|
isFunction?: boolean,
|
2020-07-21 02:38:06 +02:00
|
|
|
arg: SerializedArgument,
|
2020-07-30 02:26:59 +02:00
|
|
|
};
|
|
|
|
|
export type WorkerEvaluateExpressionHandleOptions = {
|
2021-02-03 22:49:25 +01:00
|
|
|
isFunction?: boolean,
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
|
|
|
|
export type WorkerEvaluateExpressionHandleResult = {
|
|
|
|
|
handle: JSHandleChannel,
|
|
|
|
|
};
|
2020-06-30 19:55:11 +02:00
|
|
|
|
2021-08-30 18:43:18 +02:00
|
|
|
export interface WorkerEvents {
|
|
|
|
|
'close': WorkerCloseEvent;
|
|
|
|
|
}
|
|
|
|
|
|
2020-07-21 02:38:06 +02:00
|
|
|
// ----------- JSHandle -----------
|
|
|
|
|
export type JSHandleInitializer = {
|
|
|
|
|
preview: string,
|
|
|
|
|
};
|
2021-11-18 00:26:01 +01:00
|
|
|
export interface JSHandleEventTarget {
|
2020-07-21 02:38:06 +02:00
|
|
|
on(event: 'previewUpdated', callback: (params: JSHandlePreviewUpdatedEvent) => void): this;
|
2021-11-18 00:26:01 +01:00
|
|
|
}
|
|
|
|
|
export interface JSHandleChannel extends JSHandleEventTarget, Channel {
|
|
|
|
|
_type_JSHandle: boolean;
|
2023-02-23 23:37:53 +01:00
|
|
|
dispose(params?: JSHandleDisposeParams, metadata?: CallMetadata): Promise<JSHandleDisposeResult>;
|
|
|
|
|
evaluateExpression(params: JSHandleEvaluateExpressionParams, metadata?: CallMetadata): Promise<JSHandleEvaluateExpressionResult>;
|
|
|
|
|
evaluateExpressionHandle(params: JSHandleEvaluateExpressionHandleParams, metadata?: CallMetadata): Promise<JSHandleEvaluateExpressionHandleResult>;
|
|
|
|
|
getPropertyList(params?: JSHandleGetPropertyListParams, metadata?: CallMetadata): Promise<JSHandleGetPropertyListResult>;
|
|
|
|
|
getProperty(params: JSHandleGetPropertyParams, metadata?: CallMetadata): Promise<JSHandleGetPropertyResult>;
|
|
|
|
|
jsonValue(params?: JSHandleJsonValueParams, metadata?: CallMetadata): Promise<JSHandleJsonValueResult>;
|
2020-06-26 01:05:36 +02:00
|
|
|
}
|
2020-07-21 02:38:06 +02:00
|
|
|
export type JSHandlePreviewUpdatedEvent = {
|
2020-06-26 21:28:27 +02:00
|
|
|
preview: string,
|
|
|
|
|
};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type JSHandleDisposeParams = {};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type JSHandleDisposeOptions = {};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type JSHandleDisposeResult = void;
|
|
|
|
|
export type JSHandleEvaluateExpressionParams = {
|
|
|
|
|
expression: string,
|
2021-02-03 22:49:25 +01:00
|
|
|
isFunction?: boolean,
|
2020-07-21 02:38:06 +02:00
|
|
|
arg: SerializedArgument,
|
2020-07-30 02:26:59 +02:00
|
|
|
};
|
|
|
|
|
export type JSHandleEvaluateExpressionOptions = {
|
2021-02-03 22:49:25 +01:00
|
|
|
isFunction?: boolean,
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
|
|
|
|
export type JSHandleEvaluateExpressionResult = {
|
2020-07-21 21:44:30 +02:00
|
|
|
value: SerializedValue,
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
|
|
|
|
export type JSHandleEvaluateExpressionHandleParams = {
|
|
|
|
|
expression: string,
|
2021-02-03 22:49:25 +01:00
|
|
|
isFunction?: boolean,
|
2020-07-21 02:38:06 +02:00
|
|
|
arg: SerializedArgument,
|
2020-07-30 02:26:59 +02:00
|
|
|
};
|
|
|
|
|
export type JSHandleEvaluateExpressionHandleOptions = {
|
2021-02-03 22:49:25 +01:00
|
|
|
isFunction?: boolean,
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
|
|
|
|
export type JSHandleEvaluateExpressionHandleResult = {
|
|
|
|
|
handle: JSHandleChannel,
|
|
|
|
|
};
|
|
|
|
|
export type JSHandleGetPropertyListParams = {};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type JSHandleGetPropertyListOptions = {};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type JSHandleGetPropertyListResult = {
|
|
|
|
|
properties: {
|
|
|
|
|
name: string,
|
|
|
|
|
value: JSHandleChannel,
|
|
|
|
|
}[],
|
|
|
|
|
};
|
|
|
|
|
export type JSHandleGetPropertyParams = {
|
|
|
|
|
name: string,
|
2020-07-30 02:26:59 +02:00
|
|
|
};
|
|
|
|
|
export type JSHandleGetPropertyOptions = {
|
|
|
|
|
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
|
|
|
|
export type JSHandleGetPropertyResult = {
|
|
|
|
|
handle: JSHandleChannel,
|
|
|
|
|
};
|
|
|
|
|
export type JSHandleJsonValueParams = {};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type JSHandleJsonValueOptions = {};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type JSHandleJsonValueResult = {
|
2020-07-21 21:44:30 +02:00
|
|
|
value: SerializedValue,
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
2020-06-26 01:05:36 +02:00
|
|
|
|
2021-08-30 18:43:18 +02:00
|
|
|
export interface JSHandleEvents {
|
|
|
|
|
'previewUpdated': JSHandlePreviewUpdatedEvent;
|
|
|
|
|
}
|
|
|
|
|
|
2020-07-21 02:38:06 +02:00
|
|
|
// ----------- ElementHandle -----------
|
|
|
|
|
export type ElementHandleInitializer = {};
|
2021-11-18 00:26:01 +01:00
|
|
|
export interface ElementHandleEventTarget {
|
|
|
|
|
}
|
|
|
|
|
export interface ElementHandleChannel extends ElementHandleEventTarget, JSHandleChannel {
|
|
|
|
|
_type_ElementHandle: boolean;
|
2023-02-23 23:37:53 +01:00
|
|
|
evalOnSelector(params: ElementHandleEvalOnSelectorParams, metadata?: CallMetadata): Promise<ElementHandleEvalOnSelectorResult>;
|
|
|
|
|
evalOnSelectorAll(params: ElementHandleEvalOnSelectorAllParams, metadata?: CallMetadata): Promise<ElementHandleEvalOnSelectorAllResult>;
|
|
|
|
|
boundingBox(params?: ElementHandleBoundingBoxParams, metadata?: CallMetadata): Promise<ElementHandleBoundingBoxResult>;
|
|
|
|
|
check(params: ElementHandleCheckParams, metadata?: CallMetadata): Promise<ElementHandleCheckResult>;
|
|
|
|
|
click(params: ElementHandleClickParams, metadata?: CallMetadata): Promise<ElementHandleClickResult>;
|
|
|
|
|
contentFrame(params?: ElementHandleContentFrameParams, metadata?: CallMetadata): Promise<ElementHandleContentFrameResult>;
|
|
|
|
|
dblclick(params: ElementHandleDblclickParams, metadata?: CallMetadata): Promise<ElementHandleDblclickResult>;
|
|
|
|
|
dispatchEvent(params: ElementHandleDispatchEventParams, metadata?: CallMetadata): Promise<ElementHandleDispatchEventResult>;
|
|
|
|
|
fill(params: ElementHandleFillParams, metadata?: CallMetadata): Promise<ElementHandleFillResult>;
|
|
|
|
|
focus(params?: ElementHandleFocusParams, metadata?: CallMetadata): Promise<ElementHandleFocusResult>;
|
|
|
|
|
getAttribute(params: ElementHandleGetAttributeParams, metadata?: CallMetadata): Promise<ElementHandleGetAttributeResult>;
|
|
|
|
|
hover(params: ElementHandleHoverParams, metadata?: CallMetadata): Promise<ElementHandleHoverResult>;
|
|
|
|
|
innerHTML(params?: ElementHandleInnerHTMLParams, metadata?: CallMetadata): Promise<ElementHandleInnerHTMLResult>;
|
|
|
|
|
innerText(params?: ElementHandleInnerTextParams, metadata?: CallMetadata): Promise<ElementHandleInnerTextResult>;
|
|
|
|
|
inputValue(params?: ElementHandleInputValueParams, metadata?: CallMetadata): Promise<ElementHandleInputValueResult>;
|
|
|
|
|
isChecked(params?: ElementHandleIsCheckedParams, metadata?: CallMetadata): Promise<ElementHandleIsCheckedResult>;
|
|
|
|
|
isDisabled(params?: ElementHandleIsDisabledParams, metadata?: CallMetadata): Promise<ElementHandleIsDisabledResult>;
|
|
|
|
|
isEditable(params?: ElementHandleIsEditableParams, metadata?: CallMetadata): Promise<ElementHandleIsEditableResult>;
|
|
|
|
|
isEnabled(params?: ElementHandleIsEnabledParams, metadata?: CallMetadata): Promise<ElementHandleIsEnabledResult>;
|
|
|
|
|
isHidden(params?: ElementHandleIsHiddenParams, metadata?: CallMetadata): Promise<ElementHandleIsHiddenResult>;
|
|
|
|
|
isVisible(params?: ElementHandleIsVisibleParams, metadata?: CallMetadata): Promise<ElementHandleIsVisibleResult>;
|
|
|
|
|
ownerFrame(params?: ElementHandleOwnerFrameParams, metadata?: CallMetadata): Promise<ElementHandleOwnerFrameResult>;
|
|
|
|
|
press(params: ElementHandlePressParams, metadata?: CallMetadata): Promise<ElementHandlePressResult>;
|
|
|
|
|
querySelector(params: ElementHandleQuerySelectorParams, metadata?: CallMetadata): Promise<ElementHandleQuerySelectorResult>;
|
|
|
|
|
querySelectorAll(params: ElementHandleQuerySelectorAllParams, metadata?: CallMetadata): Promise<ElementHandleQuerySelectorAllResult>;
|
|
|
|
|
screenshot(params: ElementHandleScreenshotParams, metadata?: CallMetadata): Promise<ElementHandleScreenshotResult>;
|
|
|
|
|
scrollIntoViewIfNeeded(params: ElementHandleScrollIntoViewIfNeededParams, metadata?: CallMetadata): Promise<ElementHandleScrollIntoViewIfNeededResult>;
|
|
|
|
|
selectOption(params: ElementHandleSelectOptionParams, metadata?: CallMetadata): Promise<ElementHandleSelectOptionResult>;
|
|
|
|
|
selectText(params: ElementHandleSelectTextParams, metadata?: CallMetadata): Promise<ElementHandleSelectTextResult>;
|
|
|
|
|
setInputFiles(params: ElementHandleSetInputFilesParams, metadata?: CallMetadata): Promise<ElementHandleSetInputFilesResult>;
|
|
|
|
|
setInputFilePaths(params: ElementHandleSetInputFilePathsParams, metadata?: CallMetadata): Promise<ElementHandleSetInputFilePathsResult>;
|
|
|
|
|
tap(params: ElementHandleTapParams, metadata?: CallMetadata): Promise<ElementHandleTapResult>;
|
|
|
|
|
textContent(params?: ElementHandleTextContentParams, metadata?: CallMetadata): Promise<ElementHandleTextContentResult>;
|
|
|
|
|
type(params: ElementHandleTypeParams, metadata?: CallMetadata): Promise<ElementHandleTypeResult>;
|
|
|
|
|
uncheck(params: ElementHandleUncheckParams, metadata?: CallMetadata): Promise<ElementHandleUncheckResult>;
|
|
|
|
|
waitForElementState(params: ElementHandleWaitForElementStateParams, metadata?: CallMetadata): Promise<ElementHandleWaitForElementStateResult>;
|
|
|
|
|
waitForSelector(params: ElementHandleWaitForSelectorParams, metadata?: CallMetadata): Promise<ElementHandleWaitForSelectorResult>;
|
2020-06-26 01:05:36 +02:00
|
|
|
}
|
2020-07-21 02:38:06 +02:00
|
|
|
export type ElementHandleEvalOnSelectorParams = {
|
|
|
|
|
selector: string,
|
2021-07-27 07:00:23 +02:00
|
|
|
strict?: boolean,
|
2020-07-21 02:38:06 +02:00
|
|
|
expression: string,
|
2021-02-03 22:49:25 +01:00
|
|
|
isFunction?: boolean,
|
2020-07-21 02:38:06 +02:00
|
|
|
arg: SerializedArgument,
|
2020-07-30 02:26:59 +02:00
|
|
|
};
|
|
|
|
|
export type ElementHandleEvalOnSelectorOptions = {
|
2021-07-27 07:00:23 +02:00
|
|
|
strict?: boolean,
|
2021-02-03 22:49:25 +01:00
|
|
|
isFunction?: boolean,
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
|
|
|
|
export type ElementHandleEvalOnSelectorResult = {
|
2020-07-21 21:44:30 +02:00
|
|
|
value: SerializedValue,
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
|
|
|
|
export type ElementHandleEvalOnSelectorAllParams = {
|
|
|
|
|
selector: string,
|
|
|
|
|
expression: string,
|
2021-02-03 22:49:25 +01:00
|
|
|
isFunction?: boolean,
|
2020-07-21 02:38:06 +02:00
|
|
|
arg: SerializedArgument,
|
2020-07-30 02:26:59 +02:00
|
|
|
};
|
|
|
|
|
export type ElementHandleEvalOnSelectorAllOptions = {
|
2021-02-03 22:49:25 +01:00
|
|
|
isFunction?: boolean,
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
|
|
|
|
export type ElementHandleEvalOnSelectorAllResult = {
|
2020-07-21 21:44:30 +02:00
|
|
|
value: SerializedValue,
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
|
|
|
|
export type ElementHandleBoundingBoxParams = {};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type ElementHandleBoundingBoxOptions = {};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type ElementHandleBoundingBoxResult = {
|
2020-12-10 00:06:57 +01:00
|
|
|
value?: Rect,
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
|
|
|
|
export type ElementHandleCheckParams = {
|
|
|
|
|
force?: boolean,
|
|
|
|
|
noWaitAfter?: boolean,
|
2021-04-12 21:41:25 +02:00
|
|
|
position?: Point,
|
2020-07-21 02:38:06 +02:00
|
|
|
timeout?: number,
|
2021-04-21 21:22:19 +02:00
|
|
|
trial?: boolean,
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type ElementHandleCheckOptions = {
|
|
|
|
|
force?: boolean,
|
|
|
|
|
noWaitAfter?: boolean,
|
2021-04-12 21:41:25 +02:00
|
|
|
position?: Point,
|
2020-07-30 02:26:59 +02:00
|
|
|
timeout?: number,
|
2021-04-21 21:22:19 +02:00
|
|
|
trial?: boolean,
|
2020-07-30 02:26:59 +02:00
|
|
|
};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type ElementHandleCheckResult = void;
|
|
|
|
|
export type ElementHandleClickParams = {
|
|
|
|
|
force?: boolean,
|
|
|
|
|
noWaitAfter?: boolean,
|
|
|
|
|
modifiers?: ('Alt' | 'Control' | 'Meta' | 'Shift')[],
|
2020-12-10 00:06:57 +01:00
|
|
|
position?: Point,
|
2020-07-21 02:38:06 +02:00
|
|
|
delay?: number,
|
|
|
|
|
button?: 'left' | 'right' | 'middle',
|
|
|
|
|
clickCount?: number,
|
|
|
|
|
timeout?: number,
|
2021-04-21 21:22:19 +02:00
|
|
|
trial?: boolean,
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type ElementHandleClickOptions = {
|
|
|
|
|
force?: boolean,
|
|
|
|
|
noWaitAfter?: boolean,
|
|
|
|
|
modifiers?: ('Alt' | 'Control' | 'Meta' | 'Shift')[],
|
2020-12-10 00:06:57 +01:00
|
|
|
position?: Point,
|
2020-07-30 02:26:59 +02:00
|
|
|
delay?: number,
|
|
|
|
|
button?: 'left' | 'right' | 'middle',
|
|
|
|
|
clickCount?: number,
|
|
|
|
|
timeout?: number,
|
2021-04-21 21:22:19 +02:00
|
|
|
trial?: boolean,
|
2020-07-30 02:26:59 +02:00
|
|
|
};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type ElementHandleClickResult = void;
|
|
|
|
|
export type ElementHandleContentFrameParams = {};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type ElementHandleContentFrameOptions = {};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type ElementHandleContentFrameResult = {
|
|
|
|
|
frame?: FrameChannel,
|
|
|
|
|
};
|
|
|
|
|
export type ElementHandleDblclickParams = {
|
|
|
|
|
force?: boolean,
|
|
|
|
|
noWaitAfter?: boolean,
|
|
|
|
|
modifiers?: ('Alt' | 'Control' | 'Meta' | 'Shift')[],
|
2020-12-10 00:06:57 +01:00
|
|
|
position?: Point,
|
2020-07-21 02:38:06 +02:00
|
|
|
delay?: number,
|
|
|
|
|
button?: 'left' | 'right' | 'middle',
|
|
|
|
|
timeout?: number,
|
2021-04-21 21:22:19 +02:00
|
|
|
trial?: boolean,
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type ElementHandleDblclickOptions = {
|
|
|
|
|
force?: boolean,
|
|
|
|
|
noWaitAfter?: boolean,
|
|
|
|
|
modifiers?: ('Alt' | 'Control' | 'Meta' | 'Shift')[],
|
2020-12-10 00:06:57 +01:00
|
|
|
position?: Point,
|
2020-07-30 02:26:59 +02:00
|
|
|
delay?: number,
|
|
|
|
|
button?: 'left' | 'right' | 'middle',
|
|
|
|
|
timeout?: number,
|
2021-04-21 21:22:19 +02:00
|
|
|
trial?: boolean,
|
2020-07-30 02:26:59 +02:00
|
|
|
};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type ElementHandleDblclickResult = void;
|
|
|
|
|
export type ElementHandleDispatchEventParams = {
|
|
|
|
|
type: string,
|
|
|
|
|
eventInit: SerializedArgument,
|
2020-07-30 02:26:59 +02:00
|
|
|
};
|
|
|
|
|
export type ElementHandleDispatchEventOptions = {
|
|
|
|
|
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
|
|
|
|
export type ElementHandleDispatchEventResult = void;
|
|
|
|
|
export type ElementHandleFillParams = {
|
|
|
|
|
value: string,
|
2021-06-24 17:18:09 +02:00
|
|
|
force?: boolean,
|
2020-07-21 02:38:06 +02:00
|
|
|
timeout?: number,
|
|
|
|
|
noWaitAfter?: boolean,
|
|
|
|
|
};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type ElementHandleFillOptions = {
|
2021-06-24 17:18:09 +02:00
|
|
|
force?: boolean,
|
2020-07-30 02:26:59 +02:00
|
|
|
timeout?: number,
|
|
|
|
|
noWaitAfter?: boolean,
|
|
|
|
|
};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type ElementHandleFillResult = void;
|
|
|
|
|
export type ElementHandleFocusParams = {};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type ElementHandleFocusOptions = {};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type ElementHandleFocusResult = void;
|
|
|
|
|
export type ElementHandleGetAttributeParams = {
|
|
|
|
|
name: string,
|
2020-07-30 02:26:59 +02:00
|
|
|
};
|
|
|
|
|
export type ElementHandleGetAttributeOptions = {
|
|
|
|
|
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
|
|
|
|
export type ElementHandleGetAttributeResult = {
|
|
|
|
|
value?: string,
|
|
|
|
|
};
|
|
|
|
|
export type ElementHandleHoverParams = {
|
|
|
|
|
force?: boolean,
|
|
|
|
|
modifiers?: ('Alt' | 'Control' | 'Meta' | 'Shift')[],
|
2020-12-10 00:06:57 +01:00
|
|
|
position?: Point,
|
2020-07-21 02:38:06 +02:00
|
|
|
timeout?: number,
|
2021-04-21 21:22:19 +02:00
|
|
|
trial?: boolean,
|
2022-10-07 21:43:48 +02:00
|
|
|
noWaitAfter?: boolean,
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type ElementHandleHoverOptions = {
|
|
|
|
|
force?: boolean,
|
|
|
|
|
modifiers?: ('Alt' | 'Control' | 'Meta' | 'Shift')[],
|
2020-12-10 00:06:57 +01:00
|
|
|
position?: Point,
|
2020-07-30 02:26:59 +02:00
|
|
|
timeout?: number,
|
2021-04-21 21:22:19 +02:00
|
|
|
trial?: boolean,
|
2022-10-07 21:43:48 +02:00
|
|
|
noWaitAfter?: boolean,
|
2020-07-30 02:26:59 +02:00
|
|
|
};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type ElementHandleHoverResult = void;
|
|
|
|
|
export type ElementHandleInnerHTMLParams = {};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type ElementHandleInnerHTMLOptions = {};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type ElementHandleInnerHTMLResult = {
|
|
|
|
|
value: string,
|
|
|
|
|
};
|
|
|
|
|
export type ElementHandleInnerTextParams = {};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type ElementHandleInnerTextOptions = {};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type ElementHandleInnerTextResult = {
|
|
|
|
|
value: string,
|
|
|
|
|
};
|
2021-06-24 07:19:20 +02:00
|
|
|
export type ElementHandleInputValueParams = {};
|
|
|
|
|
export type ElementHandleInputValueOptions = {};
|
|
|
|
|
export type ElementHandleInputValueResult = {
|
|
|
|
|
value: string,
|
|
|
|
|
};
|
2021-01-09 02:36:17 +01:00
|
|
|
export type ElementHandleIsCheckedParams = {};
|
|
|
|
|
export type ElementHandleIsCheckedOptions = {};
|
|
|
|
|
export type ElementHandleIsCheckedResult = {
|
|
|
|
|
value: boolean,
|
|
|
|
|
};
|
2021-01-08 21:27:54 +01:00
|
|
|
export type ElementHandleIsDisabledParams = {};
|
|
|
|
|
export type ElementHandleIsDisabledOptions = {};
|
|
|
|
|
export type ElementHandleIsDisabledResult = {
|
|
|
|
|
value: boolean,
|
|
|
|
|
};
|
|
|
|
|
export type ElementHandleIsEditableParams = {};
|
|
|
|
|
export type ElementHandleIsEditableOptions = {};
|
|
|
|
|
export type ElementHandleIsEditableResult = {
|
|
|
|
|
value: boolean,
|
|
|
|
|
};
|
|
|
|
|
export type ElementHandleIsEnabledParams = {};
|
|
|
|
|
export type ElementHandleIsEnabledOptions = {};
|
|
|
|
|
export type ElementHandleIsEnabledResult = {
|
|
|
|
|
value: boolean,
|
|
|
|
|
};
|
|
|
|
|
export type ElementHandleIsHiddenParams = {};
|
|
|
|
|
export type ElementHandleIsHiddenOptions = {};
|
|
|
|
|
export type ElementHandleIsHiddenResult = {
|
|
|
|
|
value: boolean,
|
|
|
|
|
};
|
|
|
|
|
export type ElementHandleIsVisibleParams = {};
|
|
|
|
|
export type ElementHandleIsVisibleOptions = {};
|
|
|
|
|
export type ElementHandleIsVisibleResult = {
|
|
|
|
|
value: boolean,
|
|
|
|
|
};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type ElementHandleOwnerFrameParams = {};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type ElementHandleOwnerFrameOptions = {};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type ElementHandleOwnerFrameResult = {
|
|
|
|
|
frame?: FrameChannel,
|
|
|
|
|
};
|
|
|
|
|
export type ElementHandlePressParams = {
|
|
|
|
|
key: string,
|
|
|
|
|
delay?: number,
|
|
|
|
|
timeout?: number,
|
|
|
|
|
noWaitAfter?: boolean,
|
|
|
|
|
};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type ElementHandlePressOptions = {
|
|
|
|
|
delay?: number,
|
|
|
|
|
timeout?: number,
|
|
|
|
|
noWaitAfter?: boolean,
|
|
|
|
|
};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type ElementHandlePressResult = void;
|
|
|
|
|
export type ElementHandleQuerySelectorParams = {
|
|
|
|
|
selector: string,
|
2021-07-27 07:00:23 +02:00
|
|
|
strict?: boolean,
|
2020-07-30 02:26:59 +02:00
|
|
|
};
|
|
|
|
|
export type ElementHandleQuerySelectorOptions = {
|
2021-07-27 07:00:23 +02:00
|
|
|
strict?: boolean,
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
|
|
|
|
export type ElementHandleQuerySelectorResult = {
|
|
|
|
|
element?: ElementHandleChannel,
|
|
|
|
|
};
|
|
|
|
|
export type ElementHandleQuerySelectorAllParams = {
|
|
|
|
|
selector: string,
|
2020-07-30 02:26:59 +02:00
|
|
|
};
|
|
|
|
|
export type ElementHandleQuerySelectorAllOptions = {
|
|
|
|
|
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
|
|
|
|
export type ElementHandleQuerySelectorAllResult = {
|
|
|
|
|
elements: ElementHandleChannel[],
|
|
|
|
|
};
|
|
|
|
|
export type ElementHandleScreenshotParams = {
|
|
|
|
|
timeout?: number,
|
|
|
|
|
type?: 'png' | 'jpeg',
|
|
|
|
|
quality?: number,
|
|
|
|
|
omitBackground?: boolean,
|
2022-03-30 02:48:13 +02:00
|
|
|
caret?: 'hide' | 'initial',
|
2022-03-11 02:15:36 +01:00
|
|
|
animations?: 'disabled' | 'allow',
|
2022-04-01 21:28:40 +02:00
|
|
|
scale?: 'css' | 'device',
|
2022-02-15 16:05:05 +01:00
|
|
|
mask?: {
|
|
|
|
|
frame: FrameChannel,
|
|
|
|
|
selector: string,
|
|
|
|
|
}[],
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type ElementHandleScreenshotOptions = {
|
|
|
|
|
timeout?: number,
|
|
|
|
|
type?: 'png' | 'jpeg',
|
|
|
|
|
quality?: number,
|
|
|
|
|
omitBackground?: boolean,
|
2022-03-30 02:48:13 +02:00
|
|
|
caret?: 'hide' | 'initial',
|
2022-03-11 02:15:36 +01:00
|
|
|
animations?: 'disabled' | 'allow',
|
2022-04-01 21:28:40 +02:00
|
|
|
scale?: 'css' | 'device',
|
2022-02-15 16:05:05 +01:00
|
|
|
mask?: {
|
|
|
|
|
frame: FrameChannel,
|
|
|
|
|
selector: string,
|
|
|
|
|
}[],
|
2020-07-30 02:26:59 +02:00
|
|
|
};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type ElementHandleScreenshotResult = {
|
|
|
|
|
binary: Binary,
|
|
|
|
|
};
|
|
|
|
|
export type ElementHandleScrollIntoViewIfNeededParams = {
|
|
|
|
|
timeout?: number,
|
|
|
|
|
};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type ElementHandleScrollIntoViewIfNeededOptions = {
|
|
|
|
|
timeout?: number,
|
|
|
|
|
};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type ElementHandleScrollIntoViewIfNeededResult = void;
|
|
|
|
|
export type ElementHandleSelectOptionParams = {
|
|
|
|
|
elements?: ElementHandleChannel[],
|
|
|
|
|
options?: {
|
2022-12-07 18:04:32 +01:00
|
|
|
valueOrLabel?: string,
|
2020-07-21 02:38:06 +02:00
|
|
|
value?: string,
|
|
|
|
|
label?: string,
|
|
|
|
|
index?: number,
|
|
|
|
|
}[],
|
2021-06-24 17:18:09 +02:00
|
|
|
force?: boolean,
|
2020-07-21 02:38:06 +02:00
|
|
|
timeout?: number,
|
|
|
|
|
noWaitAfter?: boolean,
|
|
|
|
|
};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type ElementHandleSelectOptionOptions = {
|
|
|
|
|
elements?: ElementHandleChannel[],
|
|
|
|
|
options?: {
|
2022-12-07 18:04:32 +01:00
|
|
|
valueOrLabel?: string,
|
2020-07-30 02:26:59 +02:00
|
|
|
value?: string,
|
|
|
|
|
label?: string,
|
|
|
|
|
index?: number,
|
|
|
|
|
}[],
|
2021-06-24 17:18:09 +02:00
|
|
|
force?: boolean,
|
2020-07-30 02:26:59 +02:00
|
|
|
timeout?: number,
|
|
|
|
|
noWaitAfter?: boolean,
|
|
|
|
|
};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type ElementHandleSelectOptionResult = {
|
|
|
|
|
values: string[],
|
|
|
|
|
};
|
|
|
|
|
export type ElementHandleSelectTextParams = {
|
2021-06-24 17:18:09 +02:00
|
|
|
force?: boolean,
|
2020-07-21 02:38:06 +02:00
|
|
|
timeout?: number,
|
|
|
|
|
};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type ElementHandleSelectTextOptions = {
|
2021-06-24 17:18:09 +02:00
|
|
|
force?: boolean,
|
2020-07-30 02:26:59 +02:00
|
|
|
timeout?: number,
|
|
|
|
|
};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type ElementHandleSelectTextResult = void;
|
|
|
|
|
export type ElementHandleSetInputFilesParams = {
|
|
|
|
|
files: {
|
|
|
|
|
name: string,
|
2021-05-19 03:30:20 +02:00
|
|
|
mimeType?: string,
|
2020-10-28 18:55:20 +01:00
|
|
|
buffer: Binary,
|
2020-07-21 02:38:06 +02:00
|
|
|
}[],
|
|
|
|
|
timeout?: number,
|
|
|
|
|
noWaitAfter?: boolean,
|
|
|
|
|
};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type ElementHandleSetInputFilesOptions = {
|
|
|
|
|
timeout?: number,
|
|
|
|
|
noWaitAfter?: boolean,
|
|
|
|
|
};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type ElementHandleSetInputFilesResult = void;
|
2022-03-18 17:00:52 +01:00
|
|
|
export type ElementHandleSetInputFilePathsParams = {
|
|
|
|
|
localPaths?: string[],
|
|
|
|
|
streams?: WritableStreamChannel[],
|
|
|
|
|
timeout?: number,
|
|
|
|
|
noWaitAfter?: boolean,
|
|
|
|
|
};
|
|
|
|
|
export type ElementHandleSetInputFilePathsOptions = {
|
|
|
|
|
localPaths?: string[],
|
|
|
|
|
streams?: WritableStreamChannel[],
|
|
|
|
|
timeout?: number,
|
|
|
|
|
noWaitAfter?: boolean,
|
|
|
|
|
};
|
|
|
|
|
export type ElementHandleSetInputFilePathsResult = void;
|
2020-10-19 19:07:33 +02:00
|
|
|
export type ElementHandleTapParams = {
|
|
|
|
|
force?: boolean,
|
|
|
|
|
noWaitAfter?: boolean,
|
|
|
|
|
modifiers?: ('Alt' | 'Control' | 'Meta' | 'Shift')[],
|
2020-12-10 00:06:57 +01:00
|
|
|
position?: Point,
|
2020-10-19 19:07:33 +02:00
|
|
|
timeout?: number,
|
2021-04-21 21:22:19 +02:00
|
|
|
trial?: boolean,
|
2020-10-19 19:07:33 +02:00
|
|
|
};
|
|
|
|
|
export type ElementHandleTapOptions = {
|
|
|
|
|
force?: boolean,
|
|
|
|
|
noWaitAfter?: boolean,
|
|
|
|
|
modifiers?: ('Alt' | 'Control' | 'Meta' | 'Shift')[],
|
2020-12-10 00:06:57 +01:00
|
|
|
position?: Point,
|
2020-10-19 19:07:33 +02:00
|
|
|
timeout?: number,
|
2021-04-21 21:22:19 +02:00
|
|
|
trial?: boolean,
|
2020-10-19 19:07:33 +02:00
|
|
|
};
|
|
|
|
|
export type ElementHandleTapResult = void;
|
2020-07-21 02:38:06 +02:00
|
|
|
export type ElementHandleTextContentParams = {};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type ElementHandleTextContentOptions = {};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type ElementHandleTextContentResult = {
|
|
|
|
|
value?: string,
|
|
|
|
|
};
|
|
|
|
|
export type ElementHandleTypeParams = {
|
|
|
|
|
text: string,
|
|
|
|
|
delay?: number,
|
|
|
|
|
noWaitAfter?: boolean,
|
|
|
|
|
timeout?: number,
|
|
|
|
|
};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type ElementHandleTypeOptions = {
|
|
|
|
|
delay?: number,
|
|
|
|
|
noWaitAfter?: boolean,
|
|
|
|
|
timeout?: number,
|
|
|
|
|
};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type ElementHandleTypeResult = void;
|
|
|
|
|
export type ElementHandleUncheckParams = {
|
|
|
|
|
force?: boolean,
|
|
|
|
|
noWaitAfter?: boolean,
|
2021-04-12 21:41:25 +02:00
|
|
|
position?: Point,
|
2020-07-21 02:38:06 +02:00
|
|
|
timeout?: number,
|
2021-04-21 21:22:19 +02:00
|
|
|
trial?: boolean,
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type ElementHandleUncheckOptions = {
|
|
|
|
|
force?: boolean,
|
|
|
|
|
noWaitAfter?: boolean,
|
2021-04-12 21:41:25 +02:00
|
|
|
position?: Point,
|
2020-07-30 02:26:59 +02:00
|
|
|
timeout?: number,
|
2021-04-21 21:22:19 +02:00
|
|
|
trial?: boolean,
|
2020-07-30 02:26:59 +02:00
|
|
|
};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type ElementHandleUncheckResult = void;
|
2020-08-18 01:22:34 +02:00
|
|
|
export type ElementHandleWaitForElementStateParams = {
|
2021-01-08 21:27:54 +01:00
|
|
|
state: 'visible' | 'hidden' | 'stable' | 'enabled' | 'disabled' | 'editable',
|
2020-08-18 01:22:34 +02:00
|
|
|
timeout?: number,
|
|
|
|
|
};
|
|
|
|
|
export type ElementHandleWaitForElementStateOptions = {
|
|
|
|
|
timeout?: number,
|
|
|
|
|
};
|
|
|
|
|
export type ElementHandleWaitForElementStateResult = void;
|
2020-08-14 23:47:24 +02:00
|
|
|
export type ElementHandleWaitForSelectorParams = {
|
|
|
|
|
selector: string,
|
2021-07-27 07:00:23 +02:00
|
|
|
strict?: boolean,
|
2020-08-14 23:47:24 +02:00
|
|
|
timeout?: number,
|
|
|
|
|
state?: 'attached' | 'detached' | 'visible' | 'hidden',
|
|
|
|
|
};
|
|
|
|
|
export type ElementHandleWaitForSelectorOptions = {
|
2021-07-27 07:00:23 +02:00
|
|
|
strict?: boolean,
|
2020-08-14 23:47:24 +02:00
|
|
|
timeout?: number,
|
|
|
|
|
state?: 'attached' | 'detached' | 'visible' | 'hidden',
|
|
|
|
|
};
|
|
|
|
|
export type ElementHandleWaitForSelectorResult = {
|
|
|
|
|
element?: ElementHandleChannel,
|
|
|
|
|
};
|
2020-06-26 01:05:36 +02:00
|
|
|
|
2021-08-30 18:43:18 +02:00
|
|
|
export interface ElementHandleEvents {
|
|
|
|
|
}
|
|
|
|
|
|
2020-07-21 02:38:06 +02:00
|
|
|
// ----------- Request -----------
|
2020-06-26 21:28:27 +02:00
|
|
|
export type RequestInitializer = {
|
2022-07-01 21:49:43 +02:00
|
|
|
frame?: FrameChannel,
|
|
|
|
|
serviceWorker?: WorkerChannel,
|
2020-06-26 21:28:27 +02:00
|
|
|
url: string,
|
|
|
|
|
resourceType: string,
|
|
|
|
|
method: string,
|
2020-07-23 00:59:37 +02:00
|
|
|
postData?: Binary,
|
2021-08-30 18:58:44 +02:00
|
|
|
headers: NameValue[],
|
2020-06-26 21:28:27 +02:00
|
|
|
isNavigationRequest: boolean,
|
2020-07-21 02:38:06 +02:00
|
|
|
redirectedFrom?: RequestChannel,
|
2020-06-26 21:28:27 +02:00
|
|
|
};
|
2021-11-18 00:26:01 +01:00
|
|
|
export interface RequestEventTarget {
|
|
|
|
|
}
|
|
|
|
|
export interface RequestChannel extends RequestEventTarget, Channel {
|
|
|
|
|
_type_Request: boolean;
|
2023-02-23 23:37:53 +01:00
|
|
|
response(params?: RequestResponseParams, metadata?: CallMetadata): Promise<RequestResponseResult>;
|
|
|
|
|
rawRequestHeaders(params?: RequestRawRequestHeadersParams, metadata?: CallMetadata): Promise<RequestRawRequestHeadersResult>;
|
2020-06-26 01:05:36 +02:00
|
|
|
}
|
2020-07-21 02:38:06 +02:00
|
|
|
export type RequestResponseParams = {};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type RequestResponseOptions = {};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type RequestResponseResult = {
|
|
|
|
|
response?: ResponseChannel,
|
|
|
|
|
};
|
2021-10-05 01:10:16 +02:00
|
|
|
export type RequestRawRequestHeadersParams = {};
|
|
|
|
|
export type RequestRawRequestHeadersOptions = {};
|
|
|
|
|
export type RequestRawRequestHeadersResult = {
|
|
|
|
|
headers: NameValue[],
|
|
|
|
|
};
|
2020-07-21 02:38:06 +02:00
|
|
|
|
2021-08-30 18:43:18 +02:00
|
|
|
export interface RequestEvents {
|
|
|
|
|
}
|
|
|
|
|
|
2020-07-21 02:38:06 +02:00
|
|
|
// ----------- Route -----------
|
2020-06-26 21:28:27 +02:00
|
|
|
export type RouteInitializer = {
|
|
|
|
|
request: RequestChannel,
|
|
|
|
|
};
|
2021-11-18 00:26:01 +01:00
|
|
|
export interface RouteEventTarget {
|
|
|
|
|
}
|
|
|
|
|
export interface RouteChannel extends RouteEventTarget, Channel {
|
|
|
|
|
_type_Route: boolean;
|
2023-02-23 23:37:53 +01:00
|
|
|
redirectNavigationRequest(params: RouteRedirectNavigationRequestParams, metadata?: CallMetadata): Promise<RouteRedirectNavigationRequestResult>;
|
|
|
|
|
abort(params: RouteAbortParams, metadata?: CallMetadata): Promise<RouteAbortResult>;
|
|
|
|
|
continue(params: RouteContinueParams, metadata?: CallMetadata): Promise<RouteContinueResult>;
|
|
|
|
|
fulfill(params: RouteFulfillParams, metadata?: CallMetadata): Promise<RouteFulfillResult>;
|
2020-06-26 01:05:36 +02:00
|
|
|
}
|
2022-06-21 20:01:01 +02:00
|
|
|
export type RouteRedirectNavigationRequestParams = {
|
|
|
|
|
url: string,
|
|
|
|
|
};
|
|
|
|
|
export type RouteRedirectNavigationRequestOptions = {
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
export type RouteRedirectNavigationRequestResult = void;
|
2020-07-21 02:38:06 +02:00
|
|
|
export type RouteAbortParams = {
|
2020-07-30 20:14:41 +02:00
|
|
|
errorCode?: string,
|
2023-03-23 22:57:03 +01:00
|
|
|
requestUrl: string,
|
2020-07-30 02:26:59 +02:00
|
|
|
};
|
|
|
|
|
export type RouteAbortOptions = {
|
2020-07-31 00:08:21 +02:00
|
|
|
errorCode?: string,
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
|
|
|
|
export type RouteAbortResult = void;
|
|
|
|
|
export type RouteContinueParams = {
|
2020-11-16 18:59:00 +01:00
|
|
|
url?: string,
|
2020-07-21 02:38:06 +02:00
|
|
|
method?: string,
|
2020-11-13 23:24:53 +01:00
|
|
|
headers?: NameValue[],
|
2020-07-25 00:16:33 +02:00
|
|
|
postData?: Binary,
|
2023-03-23 22:57:03 +01:00
|
|
|
requestUrl: string,
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type RouteContinueOptions = {
|
2020-11-16 18:59:00 +01:00
|
|
|
url?: string,
|
2020-07-30 02:26:59 +02:00
|
|
|
method?: string,
|
2020-11-13 23:24:53 +01:00
|
|
|
headers?: NameValue[],
|
2020-07-30 02:26:59 +02:00
|
|
|
postData?: Binary,
|
|
|
|
|
};
|
2021-11-03 01:48:38 +01:00
|
|
|
export type RouteContinueResult = void;
|
2020-07-21 02:38:06 +02:00
|
|
|
export type RouteFulfillParams = {
|
2020-07-30 05:42:14 +02:00
|
|
|
status?: number,
|
2020-11-13 23:24:53 +01:00
|
|
|
headers?: NameValue[],
|
2020-07-30 05:42:14 +02:00
|
|
|
body?: string,
|
|
|
|
|
isBase64?: boolean,
|
2021-09-08 23:59:12 +02:00
|
|
|
fetchResponseUid?: string,
|
2023-03-23 22:57:03 +01:00
|
|
|
requestUrl: string,
|
2020-07-30 02:26:59 +02:00
|
|
|
};
|
|
|
|
|
export type RouteFulfillOptions = {
|
2020-07-31 00:08:21 +02:00
|
|
|
status?: number,
|
2020-11-13 23:24:53 +01:00
|
|
|
headers?: NameValue[],
|
2020-07-31 00:08:21 +02:00
|
|
|
body?: string,
|
|
|
|
|
isBase64?: boolean,
|
2021-09-08 23:59:12 +02:00
|
|
|
fetchResponseUid?: string,
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
|
|
|
|
export type RouteFulfillResult = void;
|
|
|
|
|
|
2021-08-30 18:43:18 +02:00
|
|
|
export interface RouteEvents {
|
|
|
|
|
}
|
|
|
|
|
|
2020-10-22 08:25:57 +02:00
|
|
|
export type ResourceTiming = {
|
|
|
|
|
startTime: number,
|
|
|
|
|
domainLookupStart: number,
|
|
|
|
|
domainLookupEnd: number,
|
|
|
|
|
connectStart: number,
|
|
|
|
|
secureConnectionStart: number,
|
|
|
|
|
connectEnd: number,
|
|
|
|
|
requestStart: number,
|
|
|
|
|
responseStart: number,
|
|
|
|
|
};
|
|
|
|
|
|
2020-07-21 02:38:06 +02:00
|
|
|
// ----------- Response -----------
|
2020-06-26 21:28:27 +02:00
|
|
|
export type ResponseInitializer = {
|
|
|
|
|
request: RequestChannel,
|
|
|
|
|
url: string,
|
|
|
|
|
status: number,
|
|
|
|
|
statusText: string,
|
2021-08-30 18:58:44 +02:00
|
|
|
headers: NameValue[],
|
2020-10-22 08:25:57 +02:00
|
|
|
timing: ResourceTiming,
|
2022-06-08 23:34:19 +02:00
|
|
|
fromServiceWorker: boolean,
|
2020-06-26 21:28:27 +02:00
|
|
|
};
|
2021-11-18 00:26:01 +01:00
|
|
|
export interface ResponseEventTarget {
|
|
|
|
|
}
|
|
|
|
|
export interface ResponseChannel extends ResponseEventTarget, Channel {
|
|
|
|
|
_type_Response: boolean;
|
2023-02-23 23:37:53 +01:00
|
|
|
body(params?: ResponseBodyParams, metadata?: CallMetadata): Promise<ResponseBodyResult>;
|
|
|
|
|
securityDetails(params?: ResponseSecurityDetailsParams, metadata?: CallMetadata): Promise<ResponseSecurityDetailsResult>;
|
|
|
|
|
serverAddr(params?: ResponseServerAddrParams, metadata?: CallMetadata): Promise<ResponseServerAddrResult>;
|
|
|
|
|
rawResponseHeaders(params?: ResponseRawResponseHeadersParams, metadata?: CallMetadata): Promise<ResponseRawResponseHeadersResult>;
|
|
|
|
|
sizes(params?: ResponseSizesParams, metadata?: CallMetadata): Promise<ResponseSizesResult>;
|
2020-06-26 03:01:18 +02:00
|
|
|
}
|
2020-07-21 02:38:06 +02:00
|
|
|
export type ResponseBodyParams = {};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type ResponseBodyOptions = {};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type ResponseBodyResult = {
|
|
|
|
|
binary: Binary,
|
|
|
|
|
};
|
2021-06-17 22:04:55 +02:00
|
|
|
export type ResponseSecurityDetailsParams = {};
|
|
|
|
|
export type ResponseSecurityDetailsOptions = {};
|
|
|
|
|
export type ResponseSecurityDetailsResult = {
|
|
|
|
|
value?: SecurityDetails,
|
|
|
|
|
};
|
|
|
|
|
export type ResponseServerAddrParams = {};
|
|
|
|
|
export type ResponseServerAddrOptions = {};
|
|
|
|
|
export type ResponseServerAddrResult = {
|
|
|
|
|
value?: RemoteAddr,
|
|
|
|
|
};
|
2021-09-02 03:28:20 +02:00
|
|
|
export type ResponseRawResponseHeadersParams = {};
|
|
|
|
|
export type ResponseRawResponseHeadersOptions = {};
|
|
|
|
|
export type ResponseRawResponseHeadersResult = {
|
|
|
|
|
headers: NameValue[],
|
|
|
|
|
};
|
2021-09-02 19:39:57 +02:00
|
|
|
export type ResponseSizesParams = {};
|
|
|
|
|
export type ResponseSizesOptions = {};
|
|
|
|
|
export type ResponseSizesResult = {
|
|
|
|
|
sizes: RequestSizes,
|
|
|
|
|
};
|
2021-06-17 22:04:55 +02:00
|
|
|
|
2021-08-30 18:43:18 +02:00
|
|
|
export interface ResponseEvents {
|
|
|
|
|
}
|
|
|
|
|
|
2021-06-17 22:04:55 +02:00
|
|
|
export type SecurityDetails = {
|
|
|
|
|
issuer?: string,
|
|
|
|
|
protocol?: string,
|
|
|
|
|
subjectName?: string,
|
|
|
|
|
validFrom?: number,
|
|
|
|
|
validTo?: number,
|
|
|
|
|
};
|
|
|
|
|
|
2021-08-27 22:53:57 +02:00
|
|
|
export type RequestSizes = {
|
|
|
|
|
requestBodySize: number,
|
|
|
|
|
requestHeadersSize: number,
|
|
|
|
|
responseBodySize: number,
|
|
|
|
|
responseHeadersSize: number,
|
|
|
|
|
};
|
|
|
|
|
|
2021-06-17 22:04:55 +02:00
|
|
|
export type RemoteAddr = {
|
|
|
|
|
ipAddress: string,
|
|
|
|
|
port: number,
|
|
|
|
|
};
|
2020-07-21 02:38:06 +02:00
|
|
|
|
2020-10-27 06:20:43 +01:00
|
|
|
// ----------- WebSocket -----------
|
|
|
|
|
export type WebSocketInitializer = {
|
|
|
|
|
url: string,
|
|
|
|
|
};
|
2021-11-18 00:26:01 +01:00
|
|
|
export interface WebSocketEventTarget {
|
2020-10-27 06:20:43 +01:00
|
|
|
on(event: 'open', callback: (params: WebSocketOpenEvent) => void): this;
|
|
|
|
|
on(event: 'frameSent', callback: (params: WebSocketFrameSentEvent) => void): this;
|
|
|
|
|
on(event: 'frameReceived', callback: (params: WebSocketFrameReceivedEvent) => void): this;
|
2020-11-19 21:09:42 +01:00
|
|
|
on(event: 'socketError', callback: (params: WebSocketSocketErrorEvent) => void): this;
|
2020-10-27 06:20:43 +01:00
|
|
|
on(event: 'close', callback: (params: WebSocketCloseEvent) => void): this;
|
|
|
|
|
}
|
2021-11-18 00:26:01 +01:00
|
|
|
export interface WebSocketChannel extends WebSocketEventTarget, EventTargetChannel {
|
|
|
|
|
_type_WebSocket: boolean;
|
|
|
|
|
}
|
2020-10-27 06:20:43 +01:00
|
|
|
export type WebSocketOpenEvent = {};
|
|
|
|
|
export type WebSocketFrameSentEvent = {
|
|
|
|
|
opcode: number,
|
|
|
|
|
data: string,
|
|
|
|
|
};
|
|
|
|
|
export type WebSocketFrameReceivedEvent = {
|
|
|
|
|
opcode: number,
|
|
|
|
|
data: string,
|
|
|
|
|
};
|
2020-11-19 21:09:42 +01:00
|
|
|
export type WebSocketSocketErrorEvent = {
|
2020-10-27 06:20:43 +01:00
|
|
|
error: string,
|
|
|
|
|
};
|
|
|
|
|
export type WebSocketCloseEvent = {};
|
|
|
|
|
|
2021-08-30 18:43:18 +02:00
|
|
|
export interface WebSocketEvents {
|
|
|
|
|
'open': WebSocketOpenEvent;
|
|
|
|
|
'frameSent': WebSocketFrameSentEvent;
|
|
|
|
|
'frameReceived': WebSocketFrameReceivedEvent;
|
|
|
|
|
'socketError': WebSocketSocketErrorEvent;
|
|
|
|
|
'close': WebSocketCloseEvent;
|
|
|
|
|
}
|
|
|
|
|
|
2020-07-21 02:38:06 +02:00
|
|
|
// ----------- ConsoleMessage -----------
|
2020-06-26 21:28:27 +02:00
|
|
|
export type ConsoleMessageInitializer = {
|
2023-03-28 01:35:05 +02:00
|
|
|
page: PageChannel,
|
2020-06-26 21:28:27 +02:00
|
|
|
type: string,
|
|
|
|
|
text: string,
|
|
|
|
|
args: JSHandleChannel[],
|
2020-07-21 02:38:06 +02:00
|
|
|
location: {
|
2020-08-06 07:25:56 +02:00
|
|
|
url: string,
|
|
|
|
|
lineNumber: number,
|
|
|
|
|
columnNumber: number,
|
2020-07-21 02:38:06 +02:00
|
|
|
},
|
2020-06-26 21:28:27 +02:00
|
|
|
};
|
2021-11-18 00:26:01 +01:00
|
|
|
export interface ConsoleMessageEventTarget {
|
|
|
|
|
}
|
|
|
|
|
export interface ConsoleMessageChannel extends ConsoleMessageEventTarget, Channel {
|
|
|
|
|
_type_ConsoleMessage: boolean;
|
2020-06-26 20:51:47 +02:00
|
|
|
}
|
2020-07-21 02:38:06 +02:00
|
|
|
|
2021-08-30 18:43:18 +02:00
|
|
|
export interface ConsoleMessageEvents {
|
|
|
|
|
}
|
|
|
|
|
|
2020-07-21 02:38:06 +02:00
|
|
|
// ----------- BindingCall -----------
|
2020-06-26 21:28:27 +02:00
|
|
|
export type BindingCallInitializer = {
|
|
|
|
|
frame: FrameChannel,
|
|
|
|
|
name: string,
|
2020-10-02 07:47:31 +02:00
|
|
|
args?: SerializedValue[],
|
|
|
|
|
handle?: JSHandleChannel,
|
2020-06-26 21:28:27 +02:00
|
|
|
};
|
2021-11-18 00:26:01 +01:00
|
|
|
export interface BindingCallEventTarget {
|
|
|
|
|
}
|
|
|
|
|
export interface BindingCallChannel extends BindingCallEventTarget, Channel {
|
|
|
|
|
_type_BindingCall: boolean;
|
2023-02-23 23:37:53 +01:00
|
|
|
reject(params: BindingCallRejectParams, metadata?: CallMetadata): Promise<BindingCallRejectResult>;
|
|
|
|
|
resolve(params: BindingCallResolveParams, metadata?: CallMetadata): Promise<BindingCallResolveResult>;
|
2020-06-27 02:24:21 +02:00
|
|
|
}
|
2020-07-21 02:38:06 +02:00
|
|
|
export type BindingCallRejectParams = {
|
|
|
|
|
error: SerializedError,
|
2020-07-30 02:26:59 +02:00
|
|
|
};
|
|
|
|
|
export type BindingCallRejectOptions = {
|
|
|
|
|
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
|
|
|
|
export type BindingCallRejectResult = void;
|
|
|
|
|
export type BindingCallResolveParams = {
|
|
|
|
|
result: SerializedArgument,
|
2020-07-30 02:26:59 +02:00
|
|
|
};
|
|
|
|
|
export type BindingCallResolveOptions = {
|
|
|
|
|
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
|
|
|
|
export type BindingCallResolveResult = void;
|
|
|
|
|
|
2021-08-30 18:43:18 +02:00
|
|
|
export interface BindingCallEvents {
|
|
|
|
|
}
|
|
|
|
|
|
2020-07-21 02:38:06 +02:00
|
|
|
// ----------- Dialog -----------
|
2020-06-27 02:24:21 +02:00
|
|
|
export type DialogInitializer = {
|
2023-03-28 22:15:55 +02:00
|
|
|
page?: PageChannel,
|
2020-07-21 02:38:06 +02:00
|
|
|
type: string,
|
2020-06-27 02:24:21 +02:00
|
|
|
message: string,
|
|
|
|
|
defaultValue: string,
|
|
|
|
|
};
|
2021-11-18 00:26:01 +01:00
|
|
|
export interface DialogEventTarget {
|
|
|
|
|
}
|
|
|
|
|
export interface DialogChannel extends DialogEventTarget, Channel {
|
|
|
|
|
_type_Dialog: boolean;
|
2023-02-23 23:37:53 +01:00
|
|
|
accept(params: DialogAcceptParams, metadata?: CallMetadata): Promise<DialogAcceptResult>;
|
|
|
|
|
dismiss(params?: DialogDismissParams, metadata?: CallMetadata): Promise<DialogDismissResult>;
|
2020-06-27 02:24:21 +02:00
|
|
|
}
|
2020-07-21 02:38:06 +02:00
|
|
|
export type DialogAcceptParams = {
|
|
|
|
|
promptText?: string,
|
|
|
|
|
};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type DialogAcceptOptions = {
|
|
|
|
|
promptText?: string,
|
|
|
|
|
};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type DialogAcceptResult = void;
|
|
|
|
|
export type DialogDismissParams = {};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type DialogDismissOptions = {};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type DialogDismissResult = void;
|
|
|
|
|
|
2021-08-30 18:43:18 +02:00
|
|
|
export interface DialogEvents {
|
|
|
|
|
}
|
|
|
|
|
|
2022-01-22 20:25:13 +01:00
|
|
|
// ----------- Tracing -----------
|
|
|
|
|
export type TracingInitializer = {};
|
|
|
|
|
export interface TracingEventTarget {
|
|
|
|
|
}
|
|
|
|
|
export interface TracingChannel extends TracingEventTarget, Channel {
|
|
|
|
|
_type_Tracing: boolean;
|
2023-02-23 23:37:53 +01:00
|
|
|
tracingStart(params: TracingTracingStartParams, metadata?: CallMetadata): Promise<TracingTracingStartResult>;
|
|
|
|
|
tracingStartChunk(params: TracingTracingStartChunkParams, metadata?: CallMetadata): Promise<TracingTracingStartChunkResult>;
|
|
|
|
|
tracingStopChunk(params: TracingTracingStopChunkParams, metadata?: CallMetadata): Promise<TracingTracingStopChunkResult>;
|
|
|
|
|
tracingStop(params?: TracingTracingStopParams, metadata?: CallMetadata): Promise<TracingTracingStopResult>;
|
2022-01-22 20:25:13 +01:00
|
|
|
}
|
|
|
|
|
export type TracingTracingStartParams = {
|
|
|
|
|
name?: string,
|
|
|
|
|
snapshots?: boolean,
|
|
|
|
|
screenshots?: boolean,
|
|
|
|
|
sources?: boolean,
|
|
|
|
|
};
|
|
|
|
|
export type TracingTracingStartOptions = {
|
|
|
|
|
name?: string,
|
|
|
|
|
snapshots?: boolean,
|
|
|
|
|
screenshots?: boolean,
|
|
|
|
|
sources?: boolean,
|
|
|
|
|
};
|
|
|
|
|
export type TracingTracingStartResult = void;
|
|
|
|
|
export type TracingTracingStartChunkParams = {
|
2023-03-16 01:34:56 +01:00
|
|
|
name?: string,
|
2022-01-22 20:25:13 +01:00
|
|
|
title?: string,
|
|
|
|
|
};
|
|
|
|
|
export type TracingTracingStartChunkOptions = {
|
2023-03-16 01:34:56 +01:00
|
|
|
name?: string,
|
2022-01-22 20:25:13 +01:00
|
|
|
title?: string,
|
|
|
|
|
};
|
2023-03-17 02:17:07 +01:00
|
|
|
export type TracingTracingStartChunkResult = {
|
|
|
|
|
traceName: string,
|
|
|
|
|
};
|
2022-01-22 20:25:13 +01:00
|
|
|
export type TracingTracingStopChunkParams = {
|
2023-02-23 06:08:47 +01:00
|
|
|
mode: 'archive' | 'discard' | 'entries',
|
2022-01-22 20:25:13 +01:00
|
|
|
};
|
|
|
|
|
export type TracingTracingStopChunkOptions = {
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
export type TracingTracingStopChunkResult = {
|
|
|
|
|
artifact?: ArtifactChannel,
|
2023-02-23 06:08:47 +01:00
|
|
|
entries?: NameValue[],
|
2022-01-22 20:25:13 +01:00
|
|
|
};
|
|
|
|
|
export type TracingTracingStopParams = {};
|
|
|
|
|
export type TracingTracingStopOptions = {};
|
|
|
|
|
export type TracingTracingStopResult = void;
|
|
|
|
|
|
|
|
|
|
export interface TracingEvents {
|
|
|
|
|
}
|
|
|
|
|
|
2021-03-31 19:38:05 +02:00
|
|
|
// ----------- Artifact -----------
|
|
|
|
|
export type ArtifactInitializer = {
|
|
|
|
|
absolutePath: string,
|
|
|
|
|
};
|
2021-11-18 00:26:01 +01:00
|
|
|
export interface ArtifactEventTarget {
|
|
|
|
|
}
|
|
|
|
|
export interface ArtifactChannel extends ArtifactEventTarget, Channel {
|
|
|
|
|
_type_Artifact: boolean;
|
2023-02-23 23:37:53 +01:00
|
|
|
pathAfterFinished(params?: ArtifactPathAfterFinishedParams, metadata?: CallMetadata): Promise<ArtifactPathAfterFinishedResult>;
|
|
|
|
|
saveAs(params: ArtifactSaveAsParams, metadata?: CallMetadata): Promise<ArtifactSaveAsResult>;
|
|
|
|
|
saveAsStream(params?: ArtifactSaveAsStreamParams, metadata?: CallMetadata): Promise<ArtifactSaveAsStreamResult>;
|
|
|
|
|
failure(params?: ArtifactFailureParams, metadata?: CallMetadata): Promise<ArtifactFailureResult>;
|
|
|
|
|
stream(params?: ArtifactStreamParams, metadata?: CallMetadata): Promise<ArtifactStreamResult>;
|
|
|
|
|
cancel(params?: ArtifactCancelParams, metadata?: CallMetadata): Promise<ArtifactCancelResult>;
|
|
|
|
|
delete(params?: ArtifactDeleteParams, metadata?: CallMetadata): Promise<ArtifactDeleteResult>;
|
2020-07-21 02:38:06 +02:00
|
|
|
}
|
2021-03-31 19:38:05 +02:00
|
|
|
export type ArtifactPathAfterFinishedParams = {};
|
|
|
|
|
export type ArtifactPathAfterFinishedOptions = {};
|
|
|
|
|
export type ArtifactPathAfterFinishedResult = {
|
2020-07-21 02:38:06 +02:00
|
|
|
value?: string,
|
|
|
|
|
};
|
2021-03-31 19:38:05 +02:00
|
|
|
export type ArtifactSaveAsParams = {
|
2020-07-22 23:55:27 +02:00
|
|
|
path: string,
|
2020-07-30 02:26:59 +02:00
|
|
|
};
|
2021-03-31 19:38:05 +02:00
|
|
|
export type ArtifactSaveAsOptions = {
|
2020-07-30 02:26:59 +02:00
|
|
|
|
2020-07-22 23:55:27 +02:00
|
|
|
};
|
2021-03-31 19:38:05 +02:00
|
|
|
export type ArtifactSaveAsResult = void;
|
|
|
|
|
export type ArtifactSaveAsStreamParams = {};
|
|
|
|
|
export type ArtifactSaveAsStreamOptions = {};
|
|
|
|
|
export type ArtifactSaveAsStreamResult = {
|
2020-08-26 21:46:30 +02:00
|
|
|
stream: StreamChannel,
|
|
|
|
|
};
|
2021-03-31 19:38:05 +02:00
|
|
|
export type ArtifactFailureParams = {};
|
|
|
|
|
export type ArtifactFailureOptions = {};
|
|
|
|
|
export type ArtifactFailureResult = {
|
2020-07-21 02:38:06 +02:00
|
|
|
error?: string,
|
|
|
|
|
};
|
2021-03-31 19:38:05 +02:00
|
|
|
export type ArtifactStreamParams = {};
|
|
|
|
|
export type ArtifactStreamOptions = {};
|
|
|
|
|
export type ArtifactStreamResult = {
|
2020-07-21 02:38:06 +02:00
|
|
|
stream?: StreamChannel,
|
|
|
|
|
};
|
2021-06-12 22:23:22 +02:00
|
|
|
export type ArtifactCancelParams = {};
|
|
|
|
|
export type ArtifactCancelOptions = {};
|
|
|
|
|
export type ArtifactCancelResult = void;
|
2021-03-31 19:38:05 +02:00
|
|
|
export type ArtifactDeleteParams = {};
|
|
|
|
|
export type ArtifactDeleteOptions = {};
|
|
|
|
|
export type ArtifactDeleteResult = void;
|
2020-07-08 03:47:00 +02:00
|
|
|
|
2021-08-30 18:43:18 +02:00
|
|
|
export interface ArtifactEvents {
|
|
|
|
|
}
|
|
|
|
|
|
2020-07-21 02:38:06 +02:00
|
|
|
// ----------- Stream -----------
|
|
|
|
|
export type StreamInitializer = {};
|
2021-11-18 00:26:01 +01:00
|
|
|
export interface StreamEventTarget {
|
|
|
|
|
}
|
|
|
|
|
export interface StreamChannel extends StreamEventTarget, Channel {
|
|
|
|
|
_type_Stream: boolean;
|
2023-02-23 23:37:53 +01:00
|
|
|
read(params: StreamReadParams, metadata?: CallMetadata): Promise<StreamReadResult>;
|
|
|
|
|
close(params?: StreamCloseParams, metadata?: CallMetadata): Promise<StreamCloseResult>;
|
2020-07-14 19:51:37 +02:00
|
|
|
}
|
2020-07-21 02:38:06 +02:00
|
|
|
export type StreamReadParams = {
|
|
|
|
|
size?: number,
|
|
|
|
|
};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type StreamReadOptions = {
|
|
|
|
|
size?: number,
|
|
|
|
|
};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type StreamReadResult = {
|
|
|
|
|
binary: Binary,
|
|
|
|
|
};
|
2020-08-26 21:46:30 +02:00
|
|
|
export type StreamCloseParams = {};
|
|
|
|
|
export type StreamCloseOptions = {};
|
|
|
|
|
export type StreamCloseResult = void;
|
2020-07-14 19:51:37 +02:00
|
|
|
|
2021-08-30 18:43:18 +02:00
|
|
|
export interface StreamEvents {
|
|
|
|
|
}
|
|
|
|
|
|
2022-03-18 17:00:52 +01:00
|
|
|
// ----------- WritableStream -----------
|
|
|
|
|
export type WritableStreamInitializer = {};
|
|
|
|
|
export interface WritableStreamEventTarget {
|
|
|
|
|
}
|
|
|
|
|
export interface WritableStreamChannel extends WritableStreamEventTarget, Channel {
|
|
|
|
|
_type_WritableStream: boolean;
|
2023-02-23 23:37:53 +01:00
|
|
|
write(params: WritableStreamWriteParams, metadata?: CallMetadata): Promise<WritableStreamWriteResult>;
|
|
|
|
|
close(params?: WritableStreamCloseParams, metadata?: CallMetadata): Promise<WritableStreamCloseResult>;
|
2022-03-18 17:00:52 +01:00
|
|
|
}
|
|
|
|
|
export type WritableStreamWriteParams = {
|
|
|
|
|
binary: Binary,
|
|
|
|
|
};
|
|
|
|
|
export type WritableStreamWriteOptions = {
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
export type WritableStreamWriteResult = void;
|
|
|
|
|
export type WritableStreamCloseParams = {};
|
|
|
|
|
export type WritableStreamCloseOptions = {};
|
|
|
|
|
export type WritableStreamCloseResult = void;
|
|
|
|
|
|
|
|
|
|
export interface WritableStreamEvents {
|
|
|
|
|
}
|
|
|
|
|
|
2020-07-21 02:38:06 +02:00
|
|
|
// ----------- CDPSession -----------
|
|
|
|
|
export type CDPSessionInitializer = {};
|
2021-11-18 00:26:01 +01:00
|
|
|
export interface CDPSessionEventTarget {
|
2020-07-21 02:38:06 +02:00
|
|
|
on(event: 'event', callback: (params: CDPSessionEventEvent) => void): this;
|
2021-11-18 00:26:01 +01:00
|
|
|
}
|
|
|
|
|
export interface CDPSessionChannel extends CDPSessionEventTarget, Channel {
|
|
|
|
|
_type_CDPSession: boolean;
|
2023-02-23 23:37:53 +01:00
|
|
|
send(params: CDPSessionSendParams, metadata?: CallMetadata): Promise<CDPSessionSendResult>;
|
|
|
|
|
detach(params?: CDPSessionDetachParams, metadata?: CallMetadata): Promise<CDPSessionDetachResult>;
|
2020-07-08 03:47:00 +02:00
|
|
|
}
|
2020-07-21 02:38:06 +02:00
|
|
|
export type CDPSessionEventEvent = {
|
|
|
|
|
method: string,
|
2020-08-10 20:20:32 +02:00
|
|
|
params?: any,
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
|
|
|
|
export type CDPSessionSendParams = {
|
|
|
|
|
method: string,
|
2020-08-10 20:20:32 +02:00
|
|
|
params?: any,
|
2020-07-14 06:46:59 +02:00
|
|
|
};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type CDPSessionSendOptions = {
|
2020-08-10 20:20:32 +02:00
|
|
|
params?: any,
|
2020-07-30 02:26:59 +02:00
|
|
|
};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type CDPSessionSendResult = {
|
2020-08-10 20:20:32 +02:00
|
|
|
result: any,
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
|
|
|
|
export type CDPSessionDetachParams = {};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type CDPSessionDetachOptions = {};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type CDPSessionDetachResult = void;
|
2020-07-14 06:46:59 +02:00
|
|
|
|
2021-08-30 18:43:18 +02:00
|
|
|
export interface CDPSessionEvents {
|
|
|
|
|
'event': CDPSessionEventEvent;
|
|
|
|
|
}
|
|
|
|
|
|
2020-07-21 02:38:06 +02:00
|
|
|
// ----------- Electron -----------
|
|
|
|
|
export type ElectronInitializer = {};
|
2021-11-18 00:26:01 +01:00
|
|
|
export interface ElectronEventTarget {
|
|
|
|
|
}
|
|
|
|
|
export interface ElectronChannel extends ElectronEventTarget, Channel {
|
|
|
|
|
_type_Electron: boolean;
|
2023-02-23 23:37:53 +01:00
|
|
|
launch(params: ElectronLaunchParams, metadata?: CallMetadata): Promise<ElectronLaunchResult>;
|
2020-07-21 02:38:06 +02:00
|
|
|
}
|
|
|
|
|
export type ElectronLaunchParams = {
|
2021-02-01 20:43:26 +01:00
|
|
|
executablePath?: string,
|
2020-07-14 06:46:59 +02:00
|
|
|
args?: string[],
|
|
|
|
|
cwd?: string,
|
2020-11-13 23:24:53 +01:00
|
|
|
env?: NameValue[],
|
2020-07-14 06:46:59 +02:00
|
|
|
timeout?: number,
|
2021-05-19 15:56:29 +02:00
|
|
|
acceptDownloads?: boolean,
|
|
|
|
|
bypassCSP?: boolean,
|
2022-10-31 17:09:52 +01:00
|
|
|
colorScheme?: 'dark' | 'light' | 'no-preference' | 'no-override',
|
2021-05-19 15:56:29 +02:00
|
|
|
extraHTTPHeaders?: NameValue[],
|
|
|
|
|
geolocation?: {
|
|
|
|
|
longitude: number,
|
|
|
|
|
latitude: number,
|
|
|
|
|
accuracy?: number,
|
|
|
|
|
},
|
|
|
|
|
httpCredentials?: {
|
|
|
|
|
username: string,
|
|
|
|
|
password: string,
|
2023-03-27 17:52:00 +02:00
|
|
|
origin?: string,
|
2021-05-19 15:56:29 +02:00
|
|
|
},
|
|
|
|
|
ignoreHTTPSErrors?: boolean,
|
|
|
|
|
locale?: string,
|
|
|
|
|
offline?: boolean,
|
2022-06-08 03:09:47 +02:00
|
|
|
recordHar?: RecordHarOptions,
|
2021-05-19 15:56:29 +02:00
|
|
|
recordVideo?: {
|
|
|
|
|
dir: string,
|
|
|
|
|
size?: {
|
|
|
|
|
width: number,
|
|
|
|
|
height: number,
|
|
|
|
|
},
|
|
|
|
|
},
|
2021-08-18 21:51:45 +02:00
|
|
|
strictSelectors?: boolean,
|
2021-05-19 15:56:29 +02:00
|
|
|
timezoneId?: string,
|
2020-07-14 06:46:59 +02:00
|
|
|
};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type ElectronLaunchOptions = {
|
2021-02-01 20:43:26 +01:00
|
|
|
executablePath?: string,
|
2020-07-30 02:26:59 +02:00
|
|
|
args?: string[],
|
|
|
|
|
cwd?: string,
|
2020-11-13 23:24:53 +01:00
|
|
|
env?: NameValue[],
|
2020-07-30 02:26:59 +02:00
|
|
|
timeout?: number,
|
2021-05-19 15:56:29 +02:00
|
|
|
acceptDownloads?: boolean,
|
|
|
|
|
bypassCSP?: boolean,
|
2022-10-31 17:09:52 +01:00
|
|
|
colorScheme?: 'dark' | 'light' | 'no-preference' | 'no-override',
|
2021-05-19 15:56:29 +02:00
|
|
|
extraHTTPHeaders?: NameValue[],
|
|
|
|
|
geolocation?: {
|
|
|
|
|
longitude: number,
|
|
|
|
|
latitude: number,
|
|
|
|
|
accuracy?: number,
|
|
|
|
|
},
|
|
|
|
|
httpCredentials?: {
|
|
|
|
|
username: string,
|
|
|
|
|
password: string,
|
2023-03-27 17:52:00 +02:00
|
|
|
origin?: string,
|
2021-05-19 15:56:29 +02:00
|
|
|
},
|
|
|
|
|
ignoreHTTPSErrors?: boolean,
|
|
|
|
|
locale?: string,
|
|
|
|
|
offline?: boolean,
|
2022-06-08 03:09:47 +02:00
|
|
|
recordHar?: RecordHarOptions,
|
2021-05-19 15:56:29 +02:00
|
|
|
recordVideo?: {
|
|
|
|
|
dir: string,
|
|
|
|
|
size?: {
|
|
|
|
|
width: number,
|
|
|
|
|
height: number,
|
|
|
|
|
},
|
|
|
|
|
},
|
2021-08-18 21:51:45 +02:00
|
|
|
strictSelectors?: boolean,
|
2021-05-19 15:56:29 +02:00
|
|
|
timezoneId?: string,
|
2020-07-30 02:26:59 +02:00
|
|
|
};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type ElectronLaunchResult = {
|
|
|
|
|
electronApplication: ElectronApplicationChannel,
|
|
|
|
|
};
|
2020-07-14 06:46:59 +02:00
|
|
|
|
2021-08-30 18:43:18 +02:00
|
|
|
export interface ElectronEvents {
|
|
|
|
|
}
|
|
|
|
|
|
2020-07-21 02:38:06 +02:00
|
|
|
// ----------- ElectronApplication -----------
|
2021-05-03 07:45:06 +02:00
|
|
|
export type ElectronApplicationInitializer = {
|
|
|
|
|
context: BrowserContextChannel,
|
|
|
|
|
};
|
2021-11-18 00:26:01 +01:00
|
|
|
export interface ElectronApplicationEventTarget {
|
2020-07-21 02:38:06 +02:00
|
|
|
on(event: 'close', callback: (params: ElectronApplicationCloseEvent) => void): this;
|
2021-11-18 00:26:01 +01:00
|
|
|
}
|
|
|
|
|
export interface ElectronApplicationChannel extends ElectronApplicationEventTarget, EventTargetChannel {
|
|
|
|
|
_type_ElectronApplication: boolean;
|
2023-02-23 23:37:53 +01:00
|
|
|
browserWindow(params: ElectronApplicationBrowserWindowParams, metadata?: CallMetadata): Promise<ElectronApplicationBrowserWindowResult>;
|
|
|
|
|
evaluateExpression(params: ElectronApplicationEvaluateExpressionParams, metadata?: CallMetadata): Promise<ElectronApplicationEvaluateExpressionResult>;
|
|
|
|
|
evaluateExpressionHandle(params: ElectronApplicationEvaluateExpressionHandleParams, metadata?: CallMetadata): Promise<ElectronApplicationEvaluateExpressionHandleResult>;
|
|
|
|
|
close(params?: ElectronApplicationCloseParams, metadata?: CallMetadata): Promise<ElectronApplicationCloseResult>;
|
2020-07-21 02:38:06 +02:00
|
|
|
}
|
|
|
|
|
export type ElectronApplicationCloseEvent = {};
|
2021-05-03 07:45:06 +02:00
|
|
|
export type ElectronApplicationBrowserWindowParams = {
|
2020-07-21 02:38:06 +02:00
|
|
|
page: PageChannel,
|
2021-05-03 07:45:06 +02:00
|
|
|
};
|
|
|
|
|
export type ElectronApplicationBrowserWindowOptions = {
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
export type ElectronApplicationBrowserWindowResult = {
|
|
|
|
|
handle: JSHandleChannel,
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
|
|
|
|
export type ElectronApplicationEvaluateExpressionParams = {
|
|
|
|
|
expression: string,
|
2021-02-03 22:49:25 +01:00
|
|
|
isFunction?: boolean,
|
2020-07-21 02:38:06 +02:00
|
|
|
arg: SerializedArgument,
|
2020-07-30 02:26:59 +02:00
|
|
|
};
|
|
|
|
|
export type ElectronApplicationEvaluateExpressionOptions = {
|
2021-02-03 22:49:25 +01:00
|
|
|
isFunction?: boolean,
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
|
|
|
|
export type ElectronApplicationEvaluateExpressionResult = {
|
2020-07-21 21:44:30 +02:00
|
|
|
value: SerializedValue,
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
|
|
|
|
export type ElectronApplicationEvaluateExpressionHandleParams = {
|
|
|
|
|
expression: string,
|
2021-02-03 22:49:25 +01:00
|
|
|
isFunction?: boolean,
|
2020-07-21 02:38:06 +02:00
|
|
|
arg: SerializedArgument,
|
2020-07-30 02:26:59 +02:00
|
|
|
};
|
|
|
|
|
export type ElectronApplicationEvaluateExpressionHandleOptions = {
|
2021-02-03 22:49:25 +01:00
|
|
|
isFunction?: boolean,
|
2020-07-21 02:38:06 +02:00
|
|
|
};
|
|
|
|
|
export type ElectronApplicationEvaluateExpressionHandleResult = {
|
|
|
|
|
handle: JSHandleChannel,
|
|
|
|
|
};
|
|
|
|
|
export type ElectronApplicationCloseParams = {};
|
2020-07-30 02:26:59 +02:00
|
|
|
export type ElectronApplicationCloseOptions = {};
|
2020-07-21 02:38:06 +02:00
|
|
|
export type ElectronApplicationCloseResult = void;
|
2020-12-10 00:06:57 +01:00
|
|
|
|
2021-08-30 18:43:18 +02:00
|
|
|
export interface ElectronApplicationEvents {
|
|
|
|
|
'close': ElectronApplicationCloseEvent;
|
|
|
|
|
}
|
|
|
|
|
|
2020-12-10 00:06:57 +01:00
|
|
|
// ----------- Android -----------
|
|
|
|
|
export type AndroidInitializer = {};
|
2021-11-18 00:26:01 +01:00
|
|
|
export interface AndroidEventTarget {
|
|
|
|
|
}
|
|
|
|
|
export interface AndroidChannel extends AndroidEventTarget, Channel {
|
|
|
|
|
_type_Android: boolean;
|
2023-02-23 23:37:53 +01:00
|
|
|
devices(params: AndroidDevicesParams, metadata?: CallMetadata): Promise<AndroidDevicesResult>;
|
|
|
|
|
setDefaultTimeoutNoReply(params: AndroidSetDefaultTimeoutNoReplyParams, metadata?: CallMetadata): Promise<AndroidSetDefaultTimeoutNoReplyResult>;
|
2020-12-10 00:06:57 +01:00
|
|
|
}
|
2022-03-04 20:27:25 +01:00
|
|
|
export type AndroidDevicesParams = {
|
2022-04-21 22:16:42 +02:00
|
|
|
host?: string,
|
2022-03-04 20:27:25 +01:00
|
|
|
port?: number,
|
2022-04-03 01:00:38 +02:00
|
|
|
omitDriverInstall?: boolean,
|
2022-03-04 20:27:25 +01:00
|
|
|
};
|
|
|
|
|
export type AndroidDevicesOptions = {
|
2022-04-21 22:16:42 +02:00
|
|
|
host?: string,
|
2022-03-04 20:27:25 +01:00
|
|
|
port?: number,
|
2022-04-03 01:00:38 +02:00
|
|
|
omitDriverInstall?: boolean,
|
2022-03-04 20:27:25 +01:00
|
|
|
};
|
2020-12-10 00:06:57 +01:00
|
|
|
export type AndroidDevicesResult = {
|
|
|
|
|
devices: AndroidDeviceChannel[],
|
|
|
|
|
};
|
2020-12-10 02:15:24 +01:00
|
|
|
export type AndroidSetDefaultTimeoutNoReplyParams = {
|
|
|
|
|
timeout: number,
|
2020-12-10 00:06:57 +01:00
|
|
|
};
|
2020-12-10 02:15:24 +01:00
|
|
|
export type AndroidSetDefaultTimeoutNoReplyOptions = {
|
2020-12-10 00:06:57 +01:00
|
|
|
|
|
|
|
|
};
|
2020-12-10 02:15:24 +01:00
|
|
|
export type AndroidSetDefaultTimeoutNoReplyResult = void;
|
2020-12-10 00:06:57 +01:00
|
|
|
|
2021-08-30 18:43:18 +02:00
|
|
|
export interface AndroidEvents {
|
|
|
|
|
}
|
|
|
|
|
|
2020-12-12 18:36:38 +01:00
|
|
|
// ----------- AndroidSocket -----------
|
|
|
|
|
export type AndroidSocketInitializer = {};
|
2021-11-18 00:26:01 +01:00
|
|
|
export interface AndroidSocketEventTarget {
|
2020-12-12 18:36:38 +01:00
|
|
|
on(event: 'data', callback: (params: AndroidSocketDataEvent) => void): this;
|
2020-12-16 05:15:25 +01:00
|
|
|
on(event: 'close', callback: (params: AndroidSocketCloseEvent) => void): this;
|
2021-11-18 00:26:01 +01:00
|
|
|
}
|
|
|
|
|
export interface AndroidSocketChannel extends AndroidSocketEventTarget, Channel {
|
|
|
|
|
_type_AndroidSocket: boolean;
|
2023-02-23 23:37:53 +01:00
|
|
|
write(params: AndroidSocketWriteParams, metadata?: CallMetadata): Promise<AndroidSocketWriteResult>;
|
|
|
|
|
close(params?: AndroidSocketCloseParams, metadata?: CallMetadata): Promise<AndroidSocketCloseResult>;
|
2020-12-12 18:36:38 +01:00
|
|
|
}
|
|
|
|
|
export type AndroidSocketDataEvent = {
|
|
|
|
|
data: Binary,
|
|
|
|
|
};
|
2020-12-16 05:15:25 +01:00
|
|
|
export type AndroidSocketCloseEvent = {};
|
2020-12-12 18:36:38 +01:00
|
|
|
export type AndroidSocketWriteParams = {
|
|
|
|
|
data: Binary,
|
|
|
|
|
};
|
|
|
|
|
export type AndroidSocketWriteOptions = {
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
export type AndroidSocketWriteResult = void;
|
|
|
|
|
export type AndroidSocketCloseParams = {};
|
|
|
|
|
export type AndroidSocketCloseOptions = {};
|
|
|
|
|
export type AndroidSocketCloseResult = void;
|
|
|
|
|
|
2021-08-30 18:43:18 +02:00
|
|
|
export interface AndroidSocketEvents {
|
|
|
|
|
'data': AndroidSocketDataEvent;
|
|
|
|
|
'close': AndroidSocketCloseEvent;
|
|
|
|
|
}
|
|
|
|
|
|
2020-12-10 00:06:57 +01:00
|
|
|
// ----------- AndroidDevice -----------
|
|
|
|
|
export type AndroidDeviceInitializer = {
|
|
|
|
|
model: string,
|
|
|
|
|
serial: string,
|
|
|
|
|
};
|
2021-11-18 00:26:01 +01:00
|
|
|
export interface AndroidDeviceEventTarget {
|
2022-10-26 03:18:14 +02:00
|
|
|
on(event: 'close', callback: (params: AndroidDeviceCloseEvent) => void): this;
|
2020-12-10 02:15:24 +01:00
|
|
|
on(event: 'webViewAdded', callback: (params: AndroidDeviceWebViewAddedEvent) => void): this;
|
|
|
|
|
on(event: 'webViewRemoved', callback: (params: AndroidDeviceWebViewRemovedEvent) => void): this;
|
2021-11-18 00:26:01 +01:00
|
|
|
}
|
|
|
|
|
export interface AndroidDeviceChannel extends AndroidDeviceEventTarget, EventTargetChannel {
|
|
|
|
|
_type_AndroidDevice: boolean;
|
2023-02-23 23:37:53 +01:00
|
|
|
wait(params: AndroidDeviceWaitParams, metadata?: CallMetadata): Promise<AndroidDeviceWaitResult>;
|
|
|
|
|
fill(params: AndroidDeviceFillParams, metadata?: CallMetadata): Promise<AndroidDeviceFillResult>;
|
|
|
|
|
tap(params: AndroidDeviceTapParams, metadata?: CallMetadata): Promise<AndroidDeviceTapResult>;
|
|
|
|
|
drag(params: AndroidDeviceDragParams, metadata?: CallMetadata): Promise<AndroidDeviceDragResult>;
|
|
|
|
|
fling(params: AndroidDeviceFlingParams, metadata?: CallMetadata): Promise<AndroidDeviceFlingResult>;
|
|
|
|
|
longTap(params: AndroidDeviceLongTapParams, metadata?: CallMetadata): Promise<AndroidDeviceLongTapResult>;
|
|
|
|
|
pinchClose(params: AndroidDevicePinchCloseParams, metadata?: CallMetadata): Promise<AndroidDevicePinchCloseResult>;
|
|
|
|
|
pinchOpen(params: AndroidDevicePinchOpenParams, metadata?: CallMetadata): Promise<AndroidDevicePinchOpenResult>;
|
|
|
|
|
scroll(params: AndroidDeviceScrollParams, metadata?: CallMetadata): Promise<AndroidDeviceScrollResult>;
|
|
|
|
|
swipe(params: AndroidDeviceSwipeParams, metadata?: CallMetadata): Promise<AndroidDeviceSwipeResult>;
|
|
|
|
|
info(params: AndroidDeviceInfoParams, metadata?: CallMetadata): Promise<AndroidDeviceInfoResult>;
|
|
|
|
|
screenshot(params?: AndroidDeviceScreenshotParams, metadata?: CallMetadata): Promise<AndroidDeviceScreenshotResult>;
|
|
|
|
|
inputType(params: AndroidDeviceInputTypeParams, metadata?: CallMetadata): Promise<AndroidDeviceInputTypeResult>;
|
|
|
|
|
inputPress(params: AndroidDeviceInputPressParams, metadata?: CallMetadata): Promise<AndroidDeviceInputPressResult>;
|
|
|
|
|
inputTap(params: AndroidDeviceInputTapParams, metadata?: CallMetadata): Promise<AndroidDeviceInputTapResult>;
|
|
|
|
|
inputSwipe(params: AndroidDeviceInputSwipeParams, metadata?: CallMetadata): Promise<AndroidDeviceInputSwipeResult>;
|
|
|
|
|
inputDrag(params: AndroidDeviceInputDragParams, metadata?: CallMetadata): Promise<AndroidDeviceInputDragResult>;
|
|
|
|
|
launchBrowser(params: AndroidDeviceLaunchBrowserParams, metadata?: CallMetadata): Promise<AndroidDeviceLaunchBrowserResult>;
|
|
|
|
|
open(params: AndroidDeviceOpenParams, metadata?: CallMetadata): Promise<AndroidDeviceOpenResult>;
|
|
|
|
|
shell(params: AndroidDeviceShellParams, metadata?: CallMetadata): Promise<AndroidDeviceShellResult>;
|
|
|
|
|
installApk(params: AndroidDeviceInstallApkParams, metadata?: CallMetadata): Promise<AndroidDeviceInstallApkResult>;
|
|
|
|
|
push(params: AndroidDevicePushParams, metadata?: CallMetadata): Promise<AndroidDevicePushResult>;
|
|
|
|
|
setDefaultTimeoutNoReply(params: AndroidDeviceSetDefaultTimeoutNoReplyParams, metadata?: CallMetadata): Promise<AndroidDeviceSetDefaultTimeoutNoReplyResult>;
|
|
|
|
|
connectToWebView(params: AndroidDeviceConnectToWebViewParams, metadata?: CallMetadata): Promise<AndroidDeviceConnectToWebViewResult>;
|
|
|
|
|
close(params?: AndroidDeviceCloseParams, metadata?: CallMetadata): Promise<AndroidDeviceCloseResult>;
|
2020-12-10 00:06:57 +01:00
|
|
|
}
|
2022-10-26 03:18:14 +02:00
|
|
|
export type AndroidDeviceCloseEvent = {};
|
2020-12-10 02:15:24 +01:00
|
|
|
export type AndroidDeviceWebViewAddedEvent = {
|
|
|
|
|
webView: AndroidWebView,
|
|
|
|
|
};
|
|
|
|
|
export type AndroidDeviceWebViewRemovedEvent = {
|
2022-04-08 20:52:16 +02:00
|
|
|
socketName: string,
|
2020-12-10 02:15:24 +01:00
|
|
|
};
|
2020-12-10 00:06:57 +01:00
|
|
|
export type AndroidDeviceWaitParams = {
|
|
|
|
|
selector: AndroidSelector,
|
|
|
|
|
state?: 'gone',
|
|
|
|
|
timeout?: number,
|
|
|
|
|
};
|
|
|
|
|
export type AndroidDeviceWaitOptions = {
|
|
|
|
|
state?: 'gone',
|
|
|
|
|
timeout?: number,
|
|
|
|
|
};
|
|
|
|
|
export type AndroidDeviceWaitResult = void;
|
|
|
|
|
export type AndroidDeviceFillParams = {
|
|
|
|
|
selector: AndroidSelector,
|
|
|
|
|
text: string,
|
|
|
|
|
timeout?: number,
|
|
|
|
|
};
|
|
|
|
|
export type AndroidDeviceFillOptions = {
|
|
|
|
|
timeout?: number,
|
|
|
|
|
};
|
|
|
|
|
export type AndroidDeviceFillResult = void;
|
|
|
|
|
export type AndroidDeviceTapParams = {
|
|
|
|
|
selector: AndroidSelector,
|
|
|
|
|
duration?: number,
|
|
|
|
|
timeout?: number,
|
|
|
|
|
};
|
|
|
|
|
export type AndroidDeviceTapOptions = {
|
|
|
|
|
duration?: number,
|
|
|
|
|
timeout?: number,
|
|
|
|
|
};
|
|
|
|
|
export type AndroidDeviceTapResult = void;
|
|
|
|
|
export type AndroidDeviceDragParams = {
|
|
|
|
|
selector: AndroidSelector,
|
|
|
|
|
dest: Point,
|
|
|
|
|
speed?: number,
|
|
|
|
|
timeout?: number,
|
|
|
|
|
};
|
|
|
|
|
export type AndroidDeviceDragOptions = {
|
|
|
|
|
speed?: number,
|
|
|
|
|
timeout?: number,
|
|
|
|
|
};
|
|
|
|
|
export type AndroidDeviceDragResult = void;
|
|
|
|
|
export type AndroidDeviceFlingParams = {
|
|
|
|
|
selector: AndroidSelector,
|
|
|
|
|
direction: 'up' | 'down' | 'left' | 'right',
|
|
|
|
|
speed?: number,
|
|
|
|
|
timeout?: number,
|
|
|
|
|
};
|
|
|
|
|
export type AndroidDeviceFlingOptions = {
|
|
|
|
|
speed?: number,
|
|
|
|
|
timeout?: number,
|
|
|
|
|
};
|
|
|
|
|
export type AndroidDeviceFlingResult = void;
|
|
|
|
|
export type AndroidDeviceLongTapParams = {
|
|
|
|
|
selector: AndroidSelector,
|
|
|
|
|
timeout?: number,
|
|
|
|
|
};
|
|
|
|
|
export type AndroidDeviceLongTapOptions = {
|
|
|
|
|
timeout?: number,
|
|
|
|
|
};
|
|
|
|
|
export type AndroidDeviceLongTapResult = void;
|
|
|
|
|
export type AndroidDevicePinchCloseParams = {
|
|
|
|
|
selector: AndroidSelector,
|
|
|
|
|
percent: number,
|
|
|
|
|
speed?: number,
|
|
|
|
|
timeout?: number,
|
|
|
|
|
};
|
|
|
|
|
export type AndroidDevicePinchCloseOptions = {
|
|
|
|
|
speed?: number,
|
|
|
|
|
timeout?: number,
|
|
|
|
|
};
|
|
|
|
|
export type AndroidDevicePinchCloseResult = void;
|
|
|
|
|
export type AndroidDevicePinchOpenParams = {
|
|
|
|
|
selector: AndroidSelector,
|
|
|
|
|
percent: number,
|
|
|
|
|
speed?: number,
|
|
|
|
|
timeout?: number,
|
|
|
|
|
};
|
|
|
|
|
export type AndroidDevicePinchOpenOptions = {
|
|
|
|
|
speed?: number,
|
|
|
|
|
timeout?: number,
|
|
|
|
|
};
|
|
|
|
|
export type AndroidDevicePinchOpenResult = void;
|
|
|
|
|
export type AndroidDeviceScrollParams = {
|
|
|
|
|
selector: AndroidSelector,
|
|
|
|
|
direction: 'up' | 'down' | 'left' | 'right',
|
|
|
|
|
percent: number,
|
|
|
|
|
speed?: number,
|
|
|
|
|
timeout?: number,
|
|
|
|
|
};
|
|
|
|
|
export type AndroidDeviceScrollOptions = {
|
|
|
|
|
speed?: number,
|
|
|
|
|
timeout?: number,
|
|
|
|
|
};
|
|
|
|
|
export type AndroidDeviceScrollResult = void;
|
|
|
|
|
export type AndroidDeviceSwipeParams = {
|
|
|
|
|
selector: AndroidSelector,
|
|
|
|
|
direction: 'up' | 'down' | 'left' | 'right',
|
|
|
|
|
percent: number,
|
|
|
|
|
speed?: number,
|
|
|
|
|
timeout?: number,
|
|
|
|
|
};
|
|
|
|
|
export type AndroidDeviceSwipeOptions = {
|
|
|
|
|
speed?: number,
|
|
|
|
|
timeout?: number,
|
|
|
|
|
};
|
|
|
|
|
export type AndroidDeviceSwipeResult = void;
|
|
|
|
|
export type AndroidDeviceInfoParams = {
|
|
|
|
|
selector: AndroidSelector,
|
|
|
|
|
};
|
|
|
|
|
export type AndroidDeviceInfoOptions = {
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
export type AndroidDeviceInfoResult = {
|
|
|
|
|
info: AndroidElementInfo,
|
|
|
|
|
};
|
2020-12-14 08:20:13 +01:00
|
|
|
export type AndroidDeviceScreenshotParams = {};
|
|
|
|
|
export type AndroidDeviceScreenshotOptions = {};
|
|
|
|
|
export type AndroidDeviceScreenshotResult = {
|
|
|
|
|
binary: Binary,
|
|
|
|
|
};
|
2020-12-10 00:06:57 +01:00
|
|
|
export type AndroidDeviceInputTypeParams = {
|
|
|
|
|
text: string,
|
|
|
|
|
};
|
|
|
|
|
export type AndroidDeviceInputTypeOptions = {
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
export type AndroidDeviceInputTypeResult = void;
|
|
|
|
|
export type AndroidDeviceInputPressParams = {
|
|
|
|
|
key: string,
|
|
|
|
|
};
|
|
|
|
|
export type AndroidDeviceInputPressOptions = {
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
export type AndroidDeviceInputPressResult = void;
|
|
|
|
|
export type AndroidDeviceInputTapParams = {
|
|
|
|
|
point: Point,
|
|
|
|
|
};
|
|
|
|
|
export type AndroidDeviceInputTapOptions = {
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
export type AndroidDeviceInputTapResult = void;
|
|
|
|
|
export type AndroidDeviceInputSwipeParams = {
|
|
|
|
|
segments: Point[],
|
|
|
|
|
steps: number,
|
|
|
|
|
};
|
|
|
|
|
export type AndroidDeviceInputSwipeOptions = {
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
export type AndroidDeviceInputSwipeResult = void;
|
|
|
|
|
export type AndroidDeviceInputDragParams = {
|
|
|
|
|
from: Point,
|
|
|
|
|
to: Point,
|
|
|
|
|
steps: number,
|
|
|
|
|
};
|
|
|
|
|
export type AndroidDeviceInputDragOptions = {
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
export type AndroidDeviceInputDragResult = void;
|
|
|
|
|
export type AndroidDeviceLaunchBrowserParams = {
|
2022-03-01 18:11:38 +01:00
|
|
|
noDefaultViewport?: boolean,
|
|
|
|
|
viewport?: {
|
|
|
|
|
width: number,
|
|
|
|
|
height: number,
|
|
|
|
|
},
|
|
|
|
|
screen?: {
|
|
|
|
|
width: number,
|
|
|
|
|
height: number,
|
|
|
|
|
},
|
2020-12-10 00:06:57 +01:00
|
|
|
ignoreHTTPSErrors?: boolean,
|
|
|
|
|
javaScriptEnabled?: boolean,
|
|
|
|
|
bypassCSP?: boolean,
|
|
|
|
|
userAgent?: string,
|
|
|
|
|
locale?: string,
|
|
|
|
|
timezoneId?: string,
|
|
|
|
|
geolocation?: {
|
|
|
|
|
longitude: number,
|
|
|
|
|
latitude: number,
|
|
|
|
|
accuracy?: number,
|
|
|
|
|
},
|
|
|
|
|
permissions?: string[],
|
|
|
|
|
extraHTTPHeaders?: NameValue[],
|
|
|
|
|
offline?: boolean,
|
|
|
|
|
httpCredentials?: {
|
|
|
|
|
username: string,
|
|
|
|
|
password: string,
|
2023-03-27 17:52:00 +02:00
|
|
|
origin?: string,
|
2020-12-10 00:06:57 +01:00
|
|
|
},
|
|
|
|
|
deviceScaleFactor?: number,
|
|
|
|
|
isMobile?: boolean,
|
|
|
|
|
hasTouch?: boolean,
|
2022-10-31 17:09:52 +01:00
|
|
|
colorScheme?: 'dark' | 'light' | 'no-preference' | 'no-override',
|
|
|
|
|
reducedMotion?: 'reduce' | 'no-preference' | 'no-override',
|
|
|
|
|
forcedColors?: 'active' | 'none' | 'no-override',
|
2020-12-10 00:06:57 +01:00
|
|
|
acceptDownloads?: boolean,
|
2022-03-01 18:11:38 +01:00
|
|
|
baseURL?: string,
|
2020-12-10 00:06:57 +01:00
|
|
|
recordVideo?: {
|
|
|
|
|
dir: string,
|
|
|
|
|
size?: {
|
|
|
|
|
width: number,
|
|
|
|
|
height: number,
|
|
|
|
|
},
|
|
|
|
|
},
|
2022-06-08 03:09:47 +02:00
|
|
|
recordHar?: RecordHarOptions,
|
2021-08-18 21:51:45 +02:00
|
|
|
strictSelectors?: boolean,
|
2022-06-09 00:27:51 +02:00
|
|
|
serviceWorkers?: 'allow' | 'block',
|
2022-03-01 18:11:38 +01:00
|
|
|
pkg?: string,
|
2022-12-12 16:15:19 +01:00
|
|
|
args?: string[],
|
2020-12-10 00:06:57 +01:00
|
|
|
proxy?: {
|
|
|
|
|
server: string,
|
|
|
|
|
bypass?: string,
|
|
|
|
|
username?: string,
|
|
|
|
|
password?: string,
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
export type AndroidDeviceLaunchBrowserOptions = {
|
2022-03-01 18:11:38 +01:00
|
|
|
noDefaultViewport?: boolean,
|
|
|
|
|
viewport?: {
|
|
|
|
|
width: number,
|
|
|
|
|
height: number,
|
|
|
|
|
},
|
|
|
|
|
screen?: {
|
|
|
|
|
width: number,
|
|
|
|
|
height: number,
|
|
|
|
|
},
|
2020-12-10 00:06:57 +01:00
|
|
|
ignoreHTTPSErrors?: boolean,
|
|
|
|
|
javaScriptEnabled?: boolean,
|
|
|
|
|
bypassCSP?: boolean,
|
|
|
|
|
userAgent?: string,
|
|
|
|
|
locale?: string,
|
|
|
|
|
timezoneId?: string,
|
|
|
|
|
geolocation?: {
|
|
|
|
|
longitude: number,
|
|
|
|
|
latitude: number,
|
|
|
|
|
accuracy?: number,
|
|
|
|
|
},
|
|
|
|
|
permissions?: string[],
|
|
|
|
|
extraHTTPHeaders?: NameValue[],
|
|
|
|
|
offline?: boolean,
|
|
|
|
|
httpCredentials?: {
|
|
|
|
|
username: string,
|
|
|
|
|
password: string,
|
2023-03-27 17:52:00 +02:00
|
|
|
origin?: string,
|
2020-12-10 00:06:57 +01:00
|
|
|
},
|
|
|
|
|
deviceScaleFactor?: number,
|
|
|
|
|
isMobile?: boolean,
|
|
|
|
|
hasTouch?: boolean,
|
2022-10-31 17:09:52 +01:00
|
|
|
colorScheme?: 'dark' | 'light' | 'no-preference' | 'no-override',
|
|
|
|
|
reducedMotion?: 'reduce' | 'no-preference' | 'no-override',
|
|
|
|
|
forcedColors?: 'active' | 'none' | 'no-override',
|
2020-12-10 00:06:57 +01:00
|
|
|
acceptDownloads?: boolean,
|
2022-03-01 18:11:38 +01:00
|
|
|
baseURL?: string,
|
2020-12-10 00:06:57 +01:00
|
|
|
recordVideo?: {
|
|
|
|
|
dir: string,
|
|
|
|
|
size?: {
|
|
|
|
|
width: number,
|
|
|
|
|
height: number,
|
|
|
|
|
},
|
|
|
|
|
},
|
2022-06-08 03:09:47 +02:00
|
|
|
recordHar?: RecordHarOptions,
|
2021-08-18 21:51:45 +02:00
|
|
|
strictSelectors?: boolean,
|
2022-06-09 00:27:51 +02:00
|
|
|
serviceWorkers?: 'allow' | 'block',
|
2022-03-01 18:11:38 +01:00
|
|
|
pkg?: string,
|
2022-12-12 16:15:19 +01:00
|
|
|
args?: string[],
|
2020-12-10 00:06:57 +01:00
|
|
|
proxy?: {
|
|
|
|
|
server: string,
|
|
|
|
|
bypass?: string,
|
|
|
|
|
username?: string,
|
|
|
|
|
password?: string,
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
export type AndroidDeviceLaunchBrowserResult = {
|
|
|
|
|
context: BrowserContextChannel,
|
|
|
|
|
};
|
2020-12-12 18:36:38 +01:00
|
|
|
export type AndroidDeviceOpenParams = {
|
|
|
|
|
command: string,
|
|
|
|
|
};
|
|
|
|
|
export type AndroidDeviceOpenOptions = {
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
export type AndroidDeviceOpenResult = {
|
|
|
|
|
socket: AndroidSocketChannel,
|
|
|
|
|
};
|
2020-12-10 00:06:57 +01:00
|
|
|
export type AndroidDeviceShellParams = {
|
|
|
|
|
command: string,
|
|
|
|
|
};
|
|
|
|
|
export type AndroidDeviceShellOptions = {
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
export type AndroidDeviceShellResult = {
|
2020-12-13 17:33:35 +01:00
|
|
|
result: Binary,
|
2020-12-10 00:06:57 +01:00
|
|
|
};
|
2020-12-12 18:36:38 +01:00
|
|
|
export type AndroidDeviceInstallApkParams = {
|
|
|
|
|
file: Binary,
|
|
|
|
|
args?: string[],
|
|
|
|
|
};
|
|
|
|
|
export type AndroidDeviceInstallApkOptions = {
|
|
|
|
|
args?: string[],
|
|
|
|
|
};
|
|
|
|
|
export type AndroidDeviceInstallApkResult = void;
|
2020-12-14 07:00:37 +01:00
|
|
|
export type AndroidDevicePushParams = {
|
|
|
|
|
file: Binary,
|
|
|
|
|
path: string,
|
|
|
|
|
mode?: number,
|
|
|
|
|
};
|
|
|
|
|
export type AndroidDevicePushOptions = {
|
|
|
|
|
mode?: number,
|
|
|
|
|
};
|
|
|
|
|
export type AndroidDevicePushResult = void;
|
2020-12-10 02:15:24 +01:00
|
|
|
export type AndroidDeviceSetDefaultTimeoutNoReplyParams = {
|
|
|
|
|
timeout: number,
|
|
|
|
|
};
|
|
|
|
|
export type AndroidDeviceSetDefaultTimeoutNoReplyOptions = {
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
export type AndroidDeviceSetDefaultTimeoutNoReplyResult = void;
|
|
|
|
|
export type AndroidDeviceConnectToWebViewParams = {
|
2022-04-08 20:52:16 +02:00
|
|
|
socketName: string,
|
2020-12-10 02:15:24 +01:00
|
|
|
};
|
|
|
|
|
export type AndroidDeviceConnectToWebViewOptions = {
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
export type AndroidDeviceConnectToWebViewResult = {
|
|
|
|
|
context: BrowserContextChannel,
|
|
|
|
|
};
|
2020-12-10 00:06:57 +01:00
|
|
|
export type AndroidDeviceCloseParams = {};
|
|
|
|
|
export type AndroidDeviceCloseOptions = {};
|
|
|
|
|
export type AndroidDeviceCloseResult = void;
|
2020-12-10 02:15:24 +01:00
|
|
|
|
2021-08-30 18:43:18 +02:00
|
|
|
export interface AndroidDeviceEvents {
|
2022-10-26 03:18:14 +02:00
|
|
|
'close': AndroidDeviceCloseEvent;
|
2021-08-30 18:43:18 +02:00
|
|
|
'webViewAdded': AndroidDeviceWebViewAddedEvent;
|
|
|
|
|
'webViewRemoved': AndroidDeviceWebViewRemovedEvent;
|
|
|
|
|
}
|
|
|
|
|
|
2020-12-10 02:15:24 +01:00
|
|
|
export type AndroidWebView = {
|
|
|
|
|
pid: number,
|
|
|
|
|
pkg: string,
|
2022-04-08 20:52:16 +02:00
|
|
|
socketName: string,
|
2020-12-10 02:15:24 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type AndroidSelector = {
|
|
|
|
|
checkable?: boolean,
|
|
|
|
|
checked?: boolean,
|
|
|
|
|
clazz?: string,
|
|
|
|
|
clickable?: boolean,
|
|
|
|
|
depth?: number,
|
|
|
|
|
desc?: string,
|
|
|
|
|
enabled?: boolean,
|
|
|
|
|
focusable?: boolean,
|
|
|
|
|
focused?: boolean,
|
|
|
|
|
hasChild?: {
|
|
|
|
|
selector: AndroidSelector,
|
|
|
|
|
},
|
|
|
|
|
hasDescendant?: {
|
|
|
|
|
selector: AndroidSelector,
|
|
|
|
|
maxDepth?: number,
|
|
|
|
|
},
|
|
|
|
|
longClickable?: boolean,
|
|
|
|
|
pkg?: string,
|
|
|
|
|
res?: string,
|
|
|
|
|
scrollable?: boolean,
|
|
|
|
|
selected?: boolean,
|
|
|
|
|
text?: string,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type AndroidElementInfo = {
|
2020-12-13 17:14:32 +01:00
|
|
|
children?: AndroidElementInfo[],
|
2020-12-10 02:15:24 +01:00
|
|
|
clazz: string,
|
|
|
|
|
desc: string,
|
|
|
|
|
res: string,
|
|
|
|
|
pkg: string,
|
|
|
|
|
text: string,
|
|
|
|
|
bounds: Rect,
|
|
|
|
|
checkable: boolean,
|
|
|
|
|
checked: boolean,
|
|
|
|
|
clickable: boolean,
|
|
|
|
|
enabled: boolean,
|
|
|
|
|
focusable: boolean,
|
|
|
|
|
focused: boolean,
|
|
|
|
|
longClickable: boolean,
|
|
|
|
|
scrollable: boolean,
|
|
|
|
|
selected: boolean,
|
|
|
|
|
};
|
2021-05-25 17:11:32 +02:00
|
|
|
|
2021-08-31 21:51:13 +02:00
|
|
|
// ----------- JsonPipe -----------
|
|
|
|
|
export type JsonPipeInitializer = {};
|
2021-11-18 00:26:01 +01:00
|
|
|
export interface JsonPipeEventTarget {
|
2021-08-31 21:51:13 +02:00
|
|
|
on(event: 'message', callback: (params: JsonPipeMessageEvent) => void): this;
|
|
|
|
|
on(event: 'closed', callback: (params: JsonPipeClosedEvent) => void): this;
|
2021-11-18 00:26:01 +01:00
|
|
|
}
|
|
|
|
|
export interface JsonPipeChannel extends JsonPipeEventTarget, Channel {
|
|
|
|
|
_type_JsonPipe: boolean;
|
2023-02-23 23:37:53 +01:00
|
|
|
send(params: JsonPipeSendParams, metadata?: CallMetadata): Promise<JsonPipeSendResult>;
|
|
|
|
|
close(params?: JsonPipeCloseParams, metadata?: CallMetadata): Promise<JsonPipeCloseResult>;
|
2021-08-31 21:51:13 +02:00
|
|
|
}
|
|
|
|
|
export type JsonPipeMessageEvent = {
|
|
|
|
|
message: any,
|
|
|
|
|
};
|
2021-12-15 20:12:13 +01:00
|
|
|
export type JsonPipeClosedEvent = {
|
|
|
|
|
error?: SerializedError,
|
|
|
|
|
};
|
2021-08-31 21:51:13 +02:00
|
|
|
export type JsonPipeSendParams = {
|
|
|
|
|
message: any,
|
|
|
|
|
};
|
|
|
|
|
export type JsonPipeSendOptions = {
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
export type JsonPipeSendResult = void;
|
|
|
|
|
export type JsonPipeCloseParams = {};
|
|
|
|
|
export type JsonPipeCloseOptions = {};
|
|
|
|
|
export type JsonPipeCloseResult = void;
|
|
|
|
|
|
|
|
|
|
export interface JsonPipeEvents {
|
|
|
|
|
'message': JsonPipeMessageEvent;
|
|
|
|
|
'closed': JsonPipeClosedEvent;
|
|
|
|
|
}
|