2020-07-23 04:38:19 +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.
|
|
|
|
|
|
2021-02-14 05:31:06 +01:00
|
|
|
StackFrame:
|
|
|
|
|
type: object
|
|
|
|
|
properties:
|
|
|
|
|
file: string
|
|
|
|
|
line: number?
|
|
|
|
|
column: number?
|
|
|
|
|
function: string?
|
2020-09-11 04:25:44 +02:00
|
|
|
|
|
|
|
|
# This object can be send with any rpc call in the "metadata" field.
|
2021-02-14 05:31:06 +01:00
|
|
|
|
2020-09-11 04:25:44 +02:00
|
|
|
Metadata:
|
|
|
|
|
type: object
|
|
|
|
|
properties:
|
2021-02-11 03:52:28 +01:00
|
|
|
stack:
|
|
|
|
|
type: array?
|
2021-02-14 05:31:06 +01:00
|
|
|
items: StackFrame
|
2021-02-20 03:12:33 +01:00
|
|
|
apiName: string?
|
2021-10-30 21:26:38 +02:00
|
|
|
internal: boolean?
|
2021-02-14 05:31:06 +01:00
|
|
|
|
|
|
|
|
|
2020-12-10 00:06:57 +01:00
|
|
|
Point:
|
|
|
|
|
type: object
|
|
|
|
|
properties:
|
|
|
|
|
x: number
|
|
|
|
|
y: number
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Rect:
|
|
|
|
|
type: object
|
|
|
|
|
properties:
|
|
|
|
|
x: number
|
|
|
|
|
y: number
|
|
|
|
|
width: number
|
|
|
|
|
height: number
|
|
|
|
|
|
|
|
|
|
|
2020-07-23 04:38:19 +02:00
|
|
|
SerializedValue:
|
|
|
|
|
type: object
|
|
|
|
|
# Exactly one of the properties must be present.
|
|
|
|
|
properties:
|
|
|
|
|
n: number?
|
|
|
|
|
b: boolean?
|
|
|
|
|
s: string?
|
|
|
|
|
v:
|
|
|
|
|
type: enum?
|
|
|
|
|
literals:
|
|
|
|
|
- null
|
|
|
|
|
- undefined
|
|
|
|
|
- NaN
|
|
|
|
|
- Infinity
|
|
|
|
|
- -Infinity
|
|
|
|
|
- "-0"
|
|
|
|
|
# String representation of the Date.
|
|
|
|
|
d: string?
|
|
|
|
|
# Regular expression pattern and flags.
|
|
|
|
|
r:
|
|
|
|
|
type: object?
|
|
|
|
|
properties:
|
|
|
|
|
p: string
|
|
|
|
|
f: string
|
|
|
|
|
a:
|
|
|
|
|
type: array?
|
|
|
|
|
items: SerializedValue
|
|
|
|
|
# Object with keys and values.
|
|
|
|
|
o:
|
|
|
|
|
type: array?
|
|
|
|
|
items:
|
|
|
|
|
type: object
|
|
|
|
|
properties:
|
|
|
|
|
k: string
|
|
|
|
|
v: SerializedValue
|
|
|
|
|
# An index in the handles array from SerializedArgument.
|
|
|
|
|
h: number?
|
2022-05-10 03:51:53 +02:00
|
|
|
# Index of the object in value-type for circular reference resolution.
|
|
|
|
|
id: number?
|
|
|
|
|
# Ref to the object in value-type for circular reference resolution.
|
|
|
|
|
ref: number?
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
# Represents a value with handle references.
|
|
|
|
|
SerializedArgument:
|
|
|
|
|
type: object
|
|
|
|
|
properties:
|
|
|
|
|
value: SerializedValue
|
|
|
|
|
handles:
|
|
|
|
|
type: array
|
|
|
|
|
items: Channel
|
|
|
|
|
|
|
|
|
|
|
2021-09-24 01:46:46 +02:00
|
|
|
ExpectedTextValue:
|
|
|
|
|
type: object
|
|
|
|
|
properties:
|
|
|
|
|
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-23 04:38:19 +02:00
|
|
|
AXNode:
|
|
|
|
|
type: object
|
|
|
|
|
properties:
|
|
|
|
|
role: string
|
|
|
|
|
name: string
|
|
|
|
|
valueString: string?
|
|
|
|
|
valueNumber: number?
|
|
|
|
|
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?
|
|
|
|
|
checked:
|
|
|
|
|
type: enum?
|
|
|
|
|
literals:
|
|
|
|
|
- checked
|
|
|
|
|
- unchecked
|
|
|
|
|
- mixed
|
|
|
|
|
pressed:
|
|
|
|
|
type: enum?
|
|
|
|
|
literals:
|
|
|
|
|
- pressed
|
|
|
|
|
- released
|
|
|
|
|
- mixed
|
|
|
|
|
level: number?
|
|
|
|
|
valuemin: number?
|
|
|
|
|
valuemax: number?
|
|
|
|
|
autocomplete: string?
|
|
|
|
|
haspopup: string?
|
|
|
|
|
invalid: string?
|
|
|
|
|
orientation: string?
|
|
|
|
|
children:
|
|
|
|
|
type: array?
|
|
|
|
|
items: AXNode
|
|
|
|
|
|
|
|
|
|
|
2020-11-13 23:24:53 +01:00
|
|
|
SetNetworkCookie:
|
|
|
|
|
type: object
|
|
|
|
|
properties:
|
|
|
|
|
name: string
|
|
|
|
|
value: string
|
|
|
|
|
url: string?
|
|
|
|
|
domain: string?
|
|
|
|
|
path: string?
|
|
|
|
|
expires: number?
|
|
|
|
|
httpOnly: boolean?
|
|
|
|
|
secure: boolean?
|
|
|
|
|
sameSite:
|
|
|
|
|
type: enum?
|
|
|
|
|
literals:
|
|
|
|
|
- Strict
|
|
|
|
|
- Lax
|
|
|
|
|
- None
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
NetworkCookie:
|
|
|
|
|
type: object
|
|
|
|
|
properties:
|
|
|
|
|
name: string
|
|
|
|
|
value: string
|
|
|
|
|
domain: string
|
|
|
|
|
path: string
|
|
|
|
|
expires: number
|
|
|
|
|
httpOnly: boolean
|
|
|
|
|
secure: boolean
|
|
|
|
|
sameSite:
|
|
|
|
|
type: enum
|
|
|
|
|
literals:
|
|
|
|
|
- Strict
|
|
|
|
|
- Lax
|
|
|
|
|
- None
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
NameValue:
|
|
|
|
|
type: object
|
|
|
|
|
properties:
|
|
|
|
|
name: string
|
|
|
|
|
value: string
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
OriginStorage:
|
|
|
|
|
type: object
|
|
|
|
|
properties:
|
|
|
|
|
origin: string
|
|
|
|
|
localStorage:
|
|
|
|
|
type: array
|
|
|
|
|
items: NameValue
|
|
|
|
|
|
|
|
|
|
|
2020-07-23 04:38:19 +02:00
|
|
|
SerializedError:
|
|
|
|
|
type: object
|
|
|
|
|
properties:
|
|
|
|
|
error:
|
|
|
|
|
type: object?
|
|
|
|
|
properties:
|
|
|
|
|
message: string
|
|
|
|
|
name: string
|
|
|
|
|
stack: string?
|
|
|
|
|
value: SerializedValue?
|
|
|
|
|
|
2022-06-08 03:09:47 +02:00
|
|
|
|
|
|
|
|
RecordHarOptions:
|
|
|
|
|
type: object
|
|
|
|
|
properties:
|
|
|
|
|
path: string
|
2022-06-17 01:33:32 +02:00
|
|
|
content:
|
|
|
|
|
type: enum
|
|
|
|
|
literals:
|
|
|
|
|
- embed
|
|
|
|
|
- attach
|
|
|
|
|
- omit
|
2022-06-08 03:09:47 +02:00
|
|
|
urlGlob: string?
|
|
|
|
|
urlRegexSource: string?
|
|
|
|
|
urlRegexFlags: string?
|
|
|
|
|
|
|
|
|
|
|
2021-10-01 21:11:33 +02:00
|
|
|
FormField:
|
|
|
|
|
type: object
|
|
|
|
|
properties:
|
|
|
|
|
name: string
|
|
|
|
|
value: string?
|
|
|
|
|
file:
|
|
|
|
|
type: object?
|
|
|
|
|
properties:
|
|
|
|
|
name: string
|
2021-11-18 03:12:26 +01:00
|
|
|
mimeType: string?
|
2021-10-01 21:11:33 +02:00
|
|
|
buffer: binary
|
2020-07-23 04:38:19 +02:00
|
|
|
|
2021-11-05 16:27:49 +01:00
|
|
|
APIRequestContext:
|
2021-09-15 03:31:35 +02:00
|
|
|
type: interface
|
|
|
|
|
|
2022-01-22 20:25:13 +01:00
|
|
|
initializer:
|
|
|
|
|
tracing: Tracing
|
|
|
|
|
|
2021-09-15 03:31:35 +02:00
|
|
|
commands:
|
|
|
|
|
|
|
|
|
|
fetch:
|
|
|
|
|
parameters:
|
|
|
|
|
url: string
|
|
|
|
|
params:
|
|
|
|
|
type: array?
|
|
|
|
|
items: NameValue
|
|
|
|
|
method: string?
|
|
|
|
|
headers:
|
|
|
|
|
type: array?
|
|
|
|
|
items: NameValue
|
|
|
|
|
postData: binary?
|
2021-10-01 21:11:33 +02:00
|
|
|
jsonData: json?
|
|
|
|
|
formData:
|
|
|
|
|
type: array?
|
|
|
|
|
items: NameValue
|
|
|
|
|
multipartData:
|
|
|
|
|
type: array?
|
|
|
|
|
items: FormField
|
2021-09-15 03:31:35 +02:00
|
|
|
timeout: number?
|
|
|
|
|
failOnStatusCode: boolean?
|
2021-09-29 00:33:36 +02:00
|
|
|
ignoreHTTPSErrors: boolean?
|
2021-09-15 03:31:35 +02:00
|
|
|
returns:
|
2021-11-20 05:32:29 +01:00
|
|
|
response: APIResponse
|
2021-09-15 03:31:35 +02:00
|
|
|
|
|
|
|
|
fetchResponseBody:
|
|
|
|
|
parameters:
|
|
|
|
|
fetchUid: string
|
|
|
|
|
returns:
|
|
|
|
|
binary?: binary
|
|
|
|
|
|
2021-12-01 03:12:19 +01:00
|
|
|
fetchLog:
|
|
|
|
|
parameters:
|
|
|
|
|
fetchUid: string
|
|
|
|
|
returns:
|
|
|
|
|
log:
|
|
|
|
|
type: array
|
|
|
|
|
items: string
|
|
|
|
|
|
2021-09-30 23:14:29 +02:00
|
|
|
storageState:
|
|
|
|
|
returns:
|
|
|
|
|
cookies:
|
|
|
|
|
type: array
|
|
|
|
|
items: NetworkCookie
|
|
|
|
|
origins:
|
|
|
|
|
type: array
|
|
|
|
|
items: OriginStorage
|
|
|
|
|
|
2021-11-05 16:27:49 +01:00
|
|
|
disposeAPIResponse:
|
2021-09-15 03:31:35 +02:00
|
|
|
parameters:
|
|
|
|
|
fetchUid: string
|
|
|
|
|
|
2021-09-15 23:02:55 +02:00
|
|
|
dispose:
|
|
|
|
|
|
2021-09-15 03:31:35 +02:00
|
|
|
|
2021-11-05 16:27:49 +01:00
|
|
|
APIResponse:
|
2021-08-24 23:29:04 +02:00
|
|
|
type: object
|
|
|
|
|
properties:
|
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:
|
|
|
|
|
type: array
|
|
|
|
|
items: NameValue
|
|
|
|
|
|
2021-11-02 01:12:19 +01:00
|
|
|
|
|
|
|
|
LifecycleEvent:
|
|
|
|
|
type: enum
|
|
|
|
|
literals:
|
|
|
|
|
- load
|
|
|
|
|
- domcontentloaded
|
|
|
|
|
- networkidle
|
|
|
|
|
- commit
|
|
|
|
|
|
2022-03-11 03:36:20 +01:00
|
|
|
CommonScreenshotOptions:
|
|
|
|
|
type: mixin
|
|
|
|
|
properties:
|
|
|
|
|
omitBackground: boolean?
|
2022-03-30 02:48:13 +02:00
|
|
|
caret:
|
|
|
|
|
type: enum?
|
|
|
|
|
literals:
|
|
|
|
|
- hide
|
|
|
|
|
- initial
|
2022-03-11 03:36:20 +01:00
|
|
|
animations:
|
|
|
|
|
type: enum?
|
|
|
|
|
literals:
|
|
|
|
|
- disabled
|
|
|
|
|
- allow
|
2022-04-01 21:28:40 +02:00
|
|
|
scale:
|
2022-03-11 03:36:20 +01:00
|
|
|
type: enum?
|
|
|
|
|
literals:
|
|
|
|
|
- css
|
|
|
|
|
- device
|
|
|
|
|
mask:
|
|
|
|
|
type: array?
|
|
|
|
|
items:
|
|
|
|
|
type: object
|
|
|
|
|
properties:
|
|
|
|
|
frame: Frame
|
|
|
|
|
selector: string
|
2021-11-02 01:12:19 +01:00
|
|
|
|
2021-03-24 14:37:10 +01:00
|
|
|
LaunchOptions:
|
|
|
|
|
type: mixin
|
|
|
|
|
properties:
|
2021-05-25 23:33:27 +02:00
|
|
|
channel: string?
|
2021-03-24 14:37:10 +01:00
|
|
|
executablePath: string?
|
|
|
|
|
args:
|
|
|
|
|
type: array?
|
|
|
|
|
items: string
|
|
|
|
|
ignoreAllDefaultArgs: boolean?
|
|
|
|
|
ignoreDefaultArgs:
|
|
|
|
|
type: array?
|
|
|
|
|
items: string
|
|
|
|
|
handleSIGINT: boolean?
|
|
|
|
|
handleSIGTERM: boolean?
|
|
|
|
|
handleSIGHUP: boolean?
|
|
|
|
|
timeout: number?
|
|
|
|
|
env:
|
|
|
|
|
type: array?
|
|
|
|
|
items: NameValue
|
|
|
|
|
headless: boolean?
|
|
|
|
|
devtools: boolean?
|
|
|
|
|
proxy:
|
|
|
|
|
type: object?
|
|
|
|
|
properties:
|
|
|
|
|
server: string
|
|
|
|
|
bypass: string?
|
|
|
|
|
username: string?
|
|
|
|
|
password: string?
|
|
|
|
|
downloadsPath: string?
|
2021-06-03 07:00:34 +02:00
|
|
|
tracesDir: string?
|
2021-03-24 14:37:10 +01:00
|
|
|
chromiumSandbox: boolean?
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ContextOptions:
|
|
|
|
|
type: mixin
|
|
|
|
|
properties:
|
|
|
|
|
noDefaultViewport: boolean?
|
|
|
|
|
viewport:
|
|
|
|
|
type: object?
|
|
|
|
|
properties:
|
|
|
|
|
width: number
|
|
|
|
|
height: number
|
2021-03-29 23:10:58 +02:00
|
|
|
screen:
|
|
|
|
|
type: object?
|
|
|
|
|
properties:
|
|
|
|
|
width: number
|
|
|
|
|
height: number
|
2021-03-24 14:37:10 +01:00
|
|
|
ignoreHTTPSErrors: boolean?
|
|
|
|
|
javaScriptEnabled: boolean?
|
|
|
|
|
bypassCSP: boolean?
|
|
|
|
|
userAgent: string?
|
|
|
|
|
locale: string?
|
|
|
|
|
timezoneId: string?
|
|
|
|
|
geolocation:
|
|
|
|
|
type: object?
|
|
|
|
|
properties:
|
|
|
|
|
longitude: number
|
|
|
|
|
latitude: number
|
|
|
|
|
accuracy: number?
|
|
|
|
|
permissions:
|
|
|
|
|
type: array?
|
|
|
|
|
items: string
|
|
|
|
|
extraHTTPHeaders:
|
|
|
|
|
type: array?
|
|
|
|
|
items: NameValue
|
|
|
|
|
offline: boolean?
|
|
|
|
|
httpCredentials:
|
|
|
|
|
type: object?
|
|
|
|
|
properties:
|
|
|
|
|
username: string
|
|
|
|
|
password: string
|
|
|
|
|
deviceScaleFactor: number?
|
|
|
|
|
isMobile: boolean?
|
|
|
|
|
hasTouch: boolean?
|
|
|
|
|
colorScheme:
|
|
|
|
|
type: enum?
|
|
|
|
|
literals:
|
|
|
|
|
- dark
|
|
|
|
|
- light
|
|
|
|
|
- no-preference
|
2021-05-22 01:56:09 +02:00
|
|
|
reducedMotion:
|
|
|
|
|
type: enum?
|
|
|
|
|
literals:
|
|
|
|
|
- reduce
|
|
|
|
|
- no-preference
|
2021-09-03 21:48:06 +02:00
|
|
|
forcedColors:
|
|
|
|
|
type: enum?
|
|
|
|
|
literals:
|
|
|
|
|
- active
|
|
|
|
|
- none
|
2021-03-24 14:37:10 +01:00
|
|
|
acceptDownloads: boolean?
|
2021-07-06 21:16:37 +02:00
|
|
|
baseURL: string?
|
2021-03-24 14:37:10 +01:00
|
|
|
recordVideo:
|
|
|
|
|
type: object?
|
|
|
|
|
properties:
|
|
|
|
|
dir: string
|
|
|
|
|
size:
|
|
|
|
|
type: object?
|
|
|
|
|
properties:
|
|
|
|
|
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:
|
|
|
|
|
type: enum?
|
|
|
|
|
literals:
|
|
|
|
|
- allow
|
|
|
|
|
- block
|
2021-03-24 14:37:10 +01:00
|
|
|
|
2021-12-10 02:21:17 +01:00
|
|
|
LocalUtils:
|
|
|
|
|
type: interface
|
|
|
|
|
|
|
|
|
|
commands:
|
|
|
|
|
|
|
|
|
|
zip:
|
|
|
|
|
parameters:
|
|
|
|
|
zipFile: string
|
|
|
|
|
entries:
|
|
|
|
|
type: array
|
|
|
|
|
items: NameValue
|
|
|
|
|
|
2021-08-19 17:31:14 +02:00
|
|
|
Root:
|
|
|
|
|
type: interface
|
|
|
|
|
|
|
|
|
|
commands:
|
|
|
|
|
|
|
|
|
|
initialize:
|
|
|
|
|
parameters:
|
2021-08-20 21:32:21 +02:00
|
|
|
sdkLanguage: string
|
2021-08-19 17:31:14 +02:00
|
|
|
returns:
|
|
|
|
|
playwright: Playwright
|
2021-03-24 14:37:10 +01:00
|
|
|
|
2020-07-23 04:38:19 +02:00
|
|
|
Playwright:
|
|
|
|
|
type: interface
|
|
|
|
|
|
|
|
|
|
initializer:
|
|
|
|
|
chromium: BrowserType
|
|
|
|
|
firefox: BrowserType
|
|
|
|
|
webkit: BrowserType
|
2020-12-10 00:06:57 +01:00
|
|
|
android: Android
|
|
|
|
|
electron: Electron
|
2021-12-10 02:21:17 +01:00
|
|
|
utils: LocalUtils
|
2020-07-23 04:38:19 +02:00
|
|
|
deviceDescriptors:
|
|
|
|
|
type: array
|
|
|
|
|
items:
|
|
|
|
|
type: object
|
|
|
|
|
properties:
|
|
|
|
|
name: string
|
|
|
|
|
descriptor:
|
|
|
|
|
type: object
|
|
|
|
|
properties:
|
|
|
|
|
userAgent: string
|
|
|
|
|
viewport:
|
|
|
|
|
type: object
|
|
|
|
|
properties:
|
|
|
|
|
width: number
|
|
|
|
|
height: number
|
2021-03-29 23:10:58 +02:00
|
|
|
screen:
|
|
|
|
|
type: object?
|
|
|
|
|
properties:
|
|
|
|
|
width: number
|
|
|
|
|
height: number
|
2020-07-23 04:38:19 +02:00
|
|
|
deviceScaleFactor: number
|
|
|
|
|
isMobile: boolean
|
|
|
|
|
hasTouch: boolean
|
2020-09-03 22:12:43 +02:00
|
|
|
defaultBrowserType:
|
|
|
|
|
type: enum
|
|
|
|
|
literals:
|
|
|
|
|
- chromium
|
|
|
|
|
- firefox
|
|
|
|
|
- webkit
|
2020-07-23 04:38:19 +02:00
|
|
|
selectors: Selectors
|
2021-04-12 20:14:54 +02:00
|
|
|
# Only present when connecting remotely via BrowserType.connect() method.
|
|
|
|
|
preLaunchedBrowser: Browser?
|
2022-02-13 23:03:47 +01:00
|
|
|
# Only present when socks proxy is supported.
|
|
|
|
|
socksSupport: SocksSupport?
|
2020-09-03 01:15:43 +02:00
|
|
|
|
2021-05-25 17:11:32 +02:00
|
|
|
commands:
|
2021-09-15 03:31:35 +02:00
|
|
|
newRequest:
|
|
|
|
|
parameters:
|
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:
|
|
|
|
|
type: array?
|
|
|
|
|
items: NameValue
|
|
|
|
|
httpCredentials:
|
|
|
|
|
type: object?
|
|
|
|
|
properties:
|
|
|
|
|
username: string
|
|
|
|
|
password: string
|
|
|
|
|
proxy:
|
|
|
|
|
type: object?
|
|
|
|
|
properties:
|
|
|
|
|
server: string
|
|
|
|
|
bypass: string?
|
|
|
|
|
username: string?
|
|
|
|
|
password: string?
|
|
|
|
|
timeout: number?
|
2021-09-30 23:14:29 +02:00
|
|
|
storageState:
|
|
|
|
|
type: object?
|
|
|
|
|
properties:
|
|
|
|
|
cookies:
|
|
|
|
|
type: array
|
|
|
|
|
items: NetworkCookie
|
|
|
|
|
origins:
|
|
|
|
|
type: array
|
|
|
|
|
items: OriginStorage
|
2022-01-22 20:25:13 +01:00
|
|
|
tracesDir: string?
|
2021-09-22 21:44:22 +02:00
|
|
|
|
2021-09-15 03:31:35 +02:00
|
|
|
returns:
|
2021-11-05 16:27:49 +01:00
|
|
|
request: APIRequestContext
|
2021-09-15 03:31:35 +02:00
|
|
|
|
2022-01-12 16:37:48 +01:00
|
|
|
hideHighlight:
|
|
|
|
|
|
2022-02-13 23:03:47 +01:00
|
|
|
SocksSupport:
|
|
|
|
|
type: interface
|
|
|
|
|
|
|
|
|
|
commands:
|
|
|
|
|
socksConnected:
|
|
|
|
|
parameters:
|
|
|
|
|
uid: string
|
|
|
|
|
host: string
|
|
|
|
|
port: number
|
|
|
|
|
|
|
|
|
|
socksFailed:
|
|
|
|
|
parameters:
|
|
|
|
|
uid: string
|
|
|
|
|
errorCode: string
|
|
|
|
|
|
|
|
|
|
socksData:
|
|
|
|
|
parameters:
|
|
|
|
|
uid: string
|
|
|
|
|
data: binary
|
|
|
|
|
|
|
|
|
|
socksError:
|
|
|
|
|
parameters:
|
|
|
|
|
uid: string
|
|
|
|
|
error: string
|
|
|
|
|
|
|
|
|
|
socksEnd:
|
|
|
|
|
parameters:
|
|
|
|
|
uid: string
|
|
|
|
|
|
2021-05-25 17:11:32 +02:00
|
|
|
events:
|
2021-08-20 00:16:46 +02:00
|
|
|
socksRequested:
|
|
|
|
|
parameters:
|
|
|
|
|
uid: string
|
|
|
|
|
host: string
|
|
|
|
|
port: number
|
2021-05-25 17:11:32 +02:00
|
|
|
|
2021-08-20 00:16:46 +02:00
|
|
|
socksData:
|
2021-05-25 17:11:32 +02:00
|
|
|
parameters:
|
2021-08-20 00:16:46 +02:00
|
|
|
uid: string
|
|
|
|
|
data: binary
|
2021-05-25 17:11:32 +02:00
|
|
|
|
2021-08-20 00:16:46 +02:00
|
|
|
socksClosed:
|
|
|
|
|
parameters:
|
|
|
|
|
uid: string
|
2021-08-23 21:32:06 +02:00
|
|
|
|
2020-07-23 04:38:19 +02:00
|
|
|
Selectors:
|
|
|
|
|
type: interface
|
|
|
|
|
|
|
|
|
|
commands:
|
|
|
|
|
|
|
|
|
|
register:
|
|
|
|
|
parameters:
|
|
|
|
|
name: string
|
|
|
|
|
source: string
|
|
|
|
|
contentScript: boolean?
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BrowserType:
|
|
|
|
|
type: interface
|
|
|
|
|
|
|
|
|
|
initializer:
|
|
|
|
|
executablePath: string
|
|
|
|
|
name: string
|
|
|
|
|
|
|
|
|
|
commands:
|
|
|
|
|
|
2021-08-31 21:51:13 +02:00
|
|
|
connect:
|
|
|
|
|
parameters:
|
|
|
|
|
wsEndpoint: string
|
|
|
|
|
headers: json?
|
|
|
|
|
slowMo: number?
|
|
|
|
|
timeout: number?
|
2022-02-13 23:03:47 +01:00
|
|
|
socksProxyRedirectPortForTest: number?
|
2021-08-31 21:51:13 +02:00
|
|
|
returns:
|
|
|
|
|
pipe: JsonPipe
|
|
|
|
|
|
2020-07-23 04:38:19 +02:00
|
|
|
launch:
|
|
|
|
|
parameters:
|
2021-03-24 14:37:10 +01:00
|
|
|
$mixin: LaunchOptions
|
2020-08-10 20:20:32 +02:00
|
|
|
firefoxUserPrefs: json?
|
2020-07-23 04:38:19 +02:00
|
|
|
slowMo: number?
|
|
|
|
|
returns:
|
|
|
|
|
browser: Browser
|
|
|
|
|
|
|
|
|
|
launchPersistentContext:
|
|
|
|
|
parameters:
|
2021-03-24 14:37:10 +01:00
|
|
|
$mixin1: LaunchOptions
|
|
|
|
|
$mixin2: ContextOptions
|
2020-07-23 04:38:19 +02:00
|
|
|
userDataDir: string
|
|
|
|
|
slowMo: number?
|
|
|
|
|
returns:
|
|
|
|
|
context: BrowserContext
|
|
|
|
|
|
2021-02-10 23:00:02 +01:00
|
|
|
connectOverCDP:
|
|
|
|
|
parameters:
|
2021-04-08 23:55:28 +02:00
|
|
|
endpointURL: string
|
2021-04-23 23:52:27 +02:00
|
|
|
headers:
|
|
|
|
|
type: array?
|
|
|
|
|
items: NameValue
|
2021-02-10 23:00:02 +01:00
|
|
|
slowMo: number?
|
|
|
|
|
timeout: number?
|
|
|
|
|
returns:
|
|
|
|
|
browser: Browser
|
|
|
|
|
defaultContext: BrowserContext?
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
Browser:
|
|
|
|
|
type: interface
|
|
|
|
|
|
2020-07-27 22:41:35 +02:00
|
|
|
initializer:
|
|
|
|
|
version: string
|
2020-08-28 19:23:02 +02:00
|
|
|
name: string
|
2020-07-27 22:41:35 +02:00
|
|
|
|
2020-07-23 04:38:19 +02:00
|
|
|
commands:
|
|
|
|
|
|
|
|
|
|
close:
|
|
|
|
|
|
2021-04-09 03:56:09 +02:00
|
|
|
killForTests:
|
|
|
|
|
|
2020-07-23 04:38:19 +02:00
|
|
|
newContext:
|
|
|
|
|
parameters:
|
2021-03-24 14:37:10 +01:00
|
|
|
$mixin: ContextOptions
|
2020-10-30 00:12:30 +01:00
|
|
|
proxy:
|
|
|
|
|
type: object?
|
|
|
|
|
properties:
|
|
|
|
|
server: string
|
|
|
|
|
bypass: string?
|
|
|
|
|
username: string?
|
|
|
|
|
password: string?
|
2020-11-13 23:24:53 +01:00
|
|
|
storageState:
|
|
|
|
|
type: object?
|
|
|
|
|
properties:
|
|
|
|
|
cookies:
|
|
|
|
|
type: array?
|
|
|
|
|
items: SetNetworkCookie
|
|
|
|
|
origins:
|
|
|
|
|
type: array?
|
|
|
|
|
items: OriginStorage
|
2020-07-23 04:38:19 +02:00
|
|
|
returns:
|
|
|
|
|
context: BrowserContext
|
|
|
|
|
|
2021-04-02 03:47:14 +02:00
|
|
|
newBrowserCDPSession:
|
2020-07-23 04:38:19 +02:00
|
|
|
returns:
|
|
|
|
|
session: CDPSession
|
|
|
|
|
|
2021-04-02 03:47:14 +02:00
|
|
|
startTracing:
|
2020-07-23 04:38:19 +02:00
|
|
|
parameters:
|
|
|
|
|
page: Page?
|
|
|
|
|
path: string?
|
|
|
|
|
screenshots: boolean?
|
|
|
|
|
categories:
|
|
|
|
|
type: array?
|
|
|
|
|
items: string
|
|
|
|
|
|
2021-04-02 03:47:14 +02:00
|
|
|
stopTracing:
|
2020-07-23 04:38:19 +02:00
|
|
|
returns:
|
|
|
|
|
binary: binary
|
|
|
|
|
|
|
|
|
|
events:
|
|
|
|
|
|
|
|
|
|
close:
|
|
|
|
|
|
|
|
|
|
|
2021-07-01 02:56:48 +02:00
|
|
|
EventTarget:
|
|
|
|
|
type: interface
|
|
|
|
|
|
|
|
|
|
commands:
|
|
|
|
|
waitForEventInfo:
|
|
|
|
|
parameters:
|
|
|
|
|
info:
|
|
|
|
|
type: object
|
|
|
|
|
properties:
|
|
|
|
|
waitId: string
|
|
|
|
|
phase:
|
|
|
|
|
type: enum
|
|
|
|
|
literals:
|
|
|
|
|
- before
|
|
|
|
|
- after
|
|
|
|
|
- log
|
|
|
|
|
event: string?
|
|
|
|
|
message: string?
|
|
|
|
|
error: string?
|
|
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
BrowserContext:
|
|
|
|
|
type: interface
|
|
|
|
|
|
2021-07-01 02:56:48 +02:00
|
|
|
extends: EventTarget
|
|
|
|
|
|
2020-08-28 19:23:02 +02:00
|
|
|
initializer:
|
2021-01-13 21:08:14 +01:00
|
|
|
isChromium: boolean
|
2021-11-05 16:27:49 +01:00
|
|
|
APIRequestContext: APIRequestContext
|
2022-01-22 20:25:13 +01:00
|
|
|
tracing: Tracing
|
2020-08-28 19:23:02 +02:00
|
|
|
|
2020-07-23 04:38:19 +02:00
|
|
|
commands:
|
|
|
|
|
|
|
|
|
|
addCookies:
|
|
|
|
|
parameters:
|
|
|
|
|
cookies:
|
|
|
|
|
type: array
|
2020-11-13 23:24:53 +01:00
|
|
|
items: SetNetworkCookie
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
addInitScript:
|
|
|
|
|
parameters:
|
|
|
|
|
source: string
|
|
|
|
|
|
2022-04-04 21:39:43 +02:00
|
|
|
removeInitScripts:
|
|
|
|
|
|
2020-07-23 04:38:19 +02:00
|
|
|
clearCookies:
|
|
|
|
|
|
|
|
|
|
clearPermissions:
|
|
|
|
|
|
|
|
|
|
close:
|
|
|
|
|
|
|
|
|
|
cookies:
|
|
|
|
|
parameters:
|
|
|
|
|
urls:
|
|
|
|
|
type: array
|
|
|
|
|
items: string
|
|
|
|
|
returns:
|
|
|
|
|
cookies:
|
|
|
|
|
type: array
|
2020-11-13 23:24:53 +01:00
|
|
|
items: NetworkCookie
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
exposeBinding:
|
|
|
|
|
parameters:
|
|
|
|
|
name: string
|
2020-10-02 07:47:31 +02:00
|
|
|
needsHandle: boolean?
|
2020-07-23 04:38:19 +02:00
|
|
|
|
2022-04-04 21:39:43 +02:00
|
|
|
removeExposedBindings:
|
|
|
|
|
|
2020-07-23 04:38:19 +02:00
|
|
|
grantPermissions:
|
|
|
|
|
parameters:
|
|
|
|
|
permissions:
|
|
|
|
|
type: array
|
|
|
|
|
items: string
|
|
|
|
|
origin: string?
|
|
|
|
|
|
|
|
|
|
newPage:
|
|
|
|
|
returns:
|
|
|
|
|
page: Page
|
|
|
|
|
|
|
|
|
|
setDefaultNavigationTimeoutNoReply:
|
|
|
|
|
parameters:
|
2021-10-28 17:31:30 +02:00
|
|
|
timeout: number?
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
setDefaultTimeoutNoReply:
|
|
|
|
|
parameters:
|
2021-10-28 17:31:30 +02:00
|
|
|
timeout: number?
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
setExtraHTTPHeaders:
|
|
|
|
|
parameters:
|
|
|
|
|
headers:
|
|
|
|
|
type: array
|
2020-11-13 23:24:53 +01:00
|
|
|
items: NameValue
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
setGeolocation:
|
|
|
|
|
parameters:
|
|
|
|
|
geolocation:
|
|
|
|
|
type: object?
|
|
|
|
|
properties:
|
|
|
|
|
longitude: number
|
|
|
|
|
latitude: number
|
|
|
|
|
accuracy: number?
|
|
|
|
|
|
|
|
|
|
setHTTPCredentials:
|
|
|
|
|
parameters:
|
|
|
|
|
httpCredentials:
|
|
|
|
|
type: object?
|
|
|
|
|
properties:
|
|
|
|
|
username: string
|
|
|
|
|
password: string
|
|
|
|
|
|
|
|
|
|
setNetworkInterceptionEnabled:
|
|
|
|
|
parameters:
|
|
|
|
|
enabled: boolean
|
|
|
|
|
|
|
|
|
|
setOffline:
|
|
|
|
|
parameters:
|
|
|
|
|
offline: boolean
|
|
|
|
|
|
2020-11-13 23:24:53 +01:00
|
|
|
storageState:
|
|
|
|
|
returns:
|
|
|
|
|
cookies:
|
|
|
|
|
type: array
|
|
|
|
|
items: NetworkCookie
|
|
|
|
|
origins:
|
|
|
|
|
type: array
|
|
|
|
|
items: OriginStorage
|
|
|
|
|
|
2021-01-25 23:49:26 +01:00
|
|
|
pause:
|
|
|
|
|
experimental: True
|
|
|
|
|
|
2021-01-25 04:21:19 +01:00
|
|
|
recorderSupplementEnable:
|
2020-12-23 23:15:16 +01:00
|
|
|
experimental: True
|
2021-01-25 04:21:19 +01:00
|
|
|
parameters:
|
2021-02-12 02:46:54 +01:00
|
|
|
language: string?
|
2021-02-04 01:01:51 +01:00
|
|
|
startRecording: boolean?
|
2021-02-19 18:33:24 +01:00
|
|
|
pauseOnNextStatement: boolean?
|
2021-01-25 23:49:26 +01:00
|
|
|
launchOptions: json?
|
|
|
|
|
contextOptions: json?
|
2021-01-25 04:21:19 +01:00
|
|
|
device: string?
|
|
|
|
|
saveStorage: string?
|
2021-01-25 23:49:26 +01:00
|
|
|
outputFile: string?
|
2020-12-23 23:15:16 +01:00
|
|
|
|
2021-04-02 03:47:14 +02:00
|
|
|
newCDPSession:
|
2020-07-23 04:38:19 +02:00
|
|
|
parameters:
|
2021-08-16 21:49:10 +02:00
|
|
|
page: Page?
|
|
|
|
|
frame: Frame?
|
2020-07-23 04:38:19 +02:00
|
|
|
returns:
|
|
|
|
|
session: CDPSession
|
|
|
|
|
|
2021-08-25 22:32:56 +02:00
|
|
|
harExport:
|
|
|
|
|
returns:
|
|
|
|
|
artifact: Artifact
|
|
|
|
|
|
2022-03-18 17:00:52 +01:00
|
|
|
createTempFile:
|
|
|
|
|
parameters:
|
|
|
|
|
name: string
|
|
|
|
|
returns:
|
|
|
|
|
writableStream: WritableStream
|
|
|
|
|
|
2020-07-23 04:38:19 +02:00
|
|
|
events:
|
|
|
|
|
|
|
|
|
|
bindingCall:
|
|
|
|
|
parameters:
|
|
|
|
|
binding: BindingCall
|
|
|
|
|
|
|
|
|
|
close:
|
|
|
|
|
|
|
|
|
|
page:
|
|
|
|
|
parameters:
|
|
|
|
|
page: Page
|
|
|
|
|
|
|
|
|
|
route:
|
|
|
|
|
parameters:
|
|
|
|
|
route: Route
|
|
|
|
|
request: Request
|
|
|
|
|
|
2021-03-31 19:38:05 +02:00
|
|
|
video:
|
|
|
|
|
parameters:
|
|
|
|
|
artifact: Artifact
|
|
|
|
|
|
2021-04-02 03:47:14 +02:00
|
|
|
backgroundPage:
|
2021-01-25 04:21:19 +01:00
|
|
|
parameters:
|
2021-01-25 23:49:26 +01:00
|
|
|
page: Page
|
2020-07-23 04:38:19 +02:00
|
|
|
|
2021-04-02 03:47:14 +02:00
|
|
|
serviceWorker:
|
2021-01-25 04:21:19 +01:00
|
|
|
parameters:
|
2021-01-25 23:49:26 +01:00
|
|
|
worker: Worker
|
2020-07-23 04:38:19 +02:00
|
|
|
|
2021-05-13 19:29:14 +02:00
|
|
|
request:
|
|
|
|
|
parameters:
|
|
|
|
|
request: Request
|
|
|
|
|
page: Page?
|
|
|
|
|
|
|
|
|
|
requestFailed:
|
|
|
|
|
parameters:
|
|
|
|
|
request: Request
|
|
|
|
|
failureText: string?
|
|
|
|
|
responseEndTiming: number
|
|
|
|
|
page: Page?
|
|
|
|
|
|
|
|
|
|
requestFinished:
|
|
|
|
|
parameters:
|
|
|
|
|
request: Request
|
2021-08-30 18:58:44 +02:00
|
|
|
response: Response?
|
2021-05-13 19:29:14 +02:00
|
|
|
responseEndTiming: number
|
|
|
|
|
page: Page?
|
|
|
|
|
|
|
|
|
|
response:
|
|
|
|
|
parameters:
|
|
|
|
|
response: Response
|
|
|
|
|
page: Page?
|
|
|
|
|
|
2020-07-23 04:38:19 +02:00
|
|
|
Page:
|
|
|
|
|
type: interface
|
|
|
|
|
|
2021-07-01 02:56:48 +02:00
|
|
|
extends: EventTarget
|
|
|
|
|
|
2020-07-23 04:38:19 +02:00
|
|
|
initializer:
|
|
|
|
|
mainFrame: Frame
|
|
|
|
|
viewportSize:
|
|
|
|
|
type: object?
|
|
|
|
|
properties:
|
|
|
|
|
width: number
|
|
|
|
|
height: number
|
|
|
|
|
isClosed: boolean
|
2021-04-02 20:15:07 +02:00
|
|
|
opener: Page?
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
commands:
|
|
|
|
|
|
|
|
|
|
setDefaultNavigationTimeoutNoReply:
|
|
|
|
|
parameters:
|
2021-10-28 17:31:30 +02:00
|
|
|
timeout: number?
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
setDefaultTimeoutNoReply:
|
|
|
|
|
parameters:
|
2021-10-28 17:31:30 +02:00
|
|
|
timeout: number?
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
setFileChooserInterceptedNoReply:
|
|
|
|
|
parameters:
|
|
|
|
|
intercepted: boolean
|
|
|
|
|
|
|
|
|
|
addInitScript:
|
|
|
|
|
parameters:
|
|
|
|
|
source: string
|
|
|
|
|
|
2022-04-04 21:39:43 +02:00
|
|
|
removeInitScripts:
|
|
|
|
|
|
2020-07-23 04:38:19 +02:00
|
|
|
close:
|
|
|
|
|
parameters:
|
|
|
|
|
runBeforeUnload: boolean?
|
|
|
|
|
|
|
|
|
|
emulateMedia:
|
|
|
|
|
parameters:
|
|
|
|
|
media:
|
|
|
|
|
type: enum?
|
|
|
|
|
literals:
|
|
|
|
|
- screen
|
|
|
|
|
- print
|
|
|
|
|
# Reset emulated value to the system default.
|
|
|
|
|
- null
|
|
|
|
|
colorScheme:
|
|
|
|
|
type: enum?
|
|
|
|
|
literals:
|
|
|
|
|
- dark
|
|
|
|
|
- light
|
|
|
|
|
- no-preference
|
|
|
|
|
# Reset emulated value to the system default.
|
|
|
|
|
- null
|
2021-05-22 01:56:09 +02:00
|
|
|
reducedMotion:
|
|
|
|
|
type: enum?
|
|
|
|
|
literals:
|
|
|
|
|
- reduce
|
|
|
|
|
- no-preference
|
|
|
|
|
# Reset emulated value to the system default.
|
|
|
|
|
- null
|
2021-09-03 21:48:06 +02:00
|
|
|
forcedColors:
|
|
|
|
|
type: enum?
|
|
|
|
|
literals:
|
|
|
|
|
- active
|
|
|
|
|
- none
|
|
|
|
|
# Reset emulated value to the system default.
|
|
|
|
|
- null
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
exposeBinding:
|
|
|
|
|
parameters:
|
|
|
|
|
name: string
|
2020-10-02 07:47:31 +02:00
|
|
|
needsHandle: boolean?
|
2020-07-23 04:38:19 +02:00
|
|
|
|
2022-04-04 21:39:43 +02:00
|
|
|
removeExposedBindings:
|
|
|
|
|
|
2020-07-23 04:38:19 +02:00
|
|
|
goBack:
|
|
|
|
|
parameters:
|
|
|
|
|
timeout: number?
|
2021-11-02 01:12:19 +01:00
|
|
|
waitUntil: LifecycleEvent?
|
2020-07-23 04:38:19 +02:00
|
|
|
returns:
|
|
|
|
|
response: Response?
|
2021-06-30 00:28:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
goForward:
|
|
|
|
|
parameters:
|
|
|
|
|
timeout: number?
|
2021-11-02 01:12:19 +01:00
|
|
|
waitUntil: LifecycleEvent?
|
2020-07-23 04:38:19 +02:00
|
|
|
returns:
|
|
|
|
|
response: Response?
|
2021-06-30 00:28:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
reload:
|
|
|
|
|
parameters:
|
|
|
|
|
timeout: number?
|
2021-11-02 01:12:19 +01:00
|
|
|
waitUntil: LifecycleEvent?
|
2020-07-23 04:38:19 +02:00
|
|
|
returns:
|
|
|
|
|
response: Response?
|
2021-06-30 00:28:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2020-07-23 04:38:19 +02:00
|
|
|
|
2022-02-28 21:25:59 +01:00
|
|
|
expectScreenshot:
|
|
|
|
|
parameters:
|
|
|
|
|
expected: binary?
|
|
|
|
|
timeout: number?
|
|
|
|
|
isNot: boolean
|
|
|
|
|
locator:
|
|
|
|
|
type: object?
|
|
|
|
|
properties:
|
|
|
|
|
frame: Frame
|
|
|
|
|
selector: string
|
|
|
|
|
comparatorOptions:
|
|
|
|
|
type: object?
|
|
|
|
|
properties:
|
2022-03-04 08:17:31 +01:00
|
|
|
maxDiffPixels: number?
|
|
|
|
|
maxDiffPixelRatio: number?
|
2022-02-28 21:25:59 +01:00
|
|
|
threshold: number?
|
|
|
|
|
screenshotOptions:
|
|
|
|
|
type: object?
|
|
|
|
|
properties:
|
|
|
|
|
fullPage: boolean?
|
|
|
|
|
clip: Rect?
|
2022-03-11 03:36:20 +01:00
|
|
|
$mixin: CommonScreenshotOptions
|
2022-02-28 21:25:59 +01:00
|
|
|
returns:
|
|
|
|
|
diff: binary?
|
|
|
|
|
errorMessage: string?
|
|
|
|
|
actual: binary?
|
|
|
|
|
previous: binary?
|
|
|
|
|
log:
|
|
|
|
|
type: array?
|
|
|
|
|
items: string
|
2022-03-01 08:30:00 +01:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2022-02-28 21:25:59 +01:00
|
|
|
|
2020-07-23 04:38:19 +02:00
|
|
|
screenshot:
|
|
|
|
|
parameters:
|
|
|
|
|
timeout: number?
|
|
|
|
|
type:
|
|
|
|
|
type: enum?
|
|
|
|
|
literals:
|
|
|
|
|
- png
|
|
|
|
|
- jpeg
|
|
|
|
|
quality: number?
|
|
|
|
|
fullPage: boolean?
|
2020-12-10 00:06:57 +01:00
|
|
|
clip: Rect?
|
2022-03-11 03:36:20 +01:00
|
|
|
$mixin: CommonScreenshotOptions
|
2020-07-23 04:38:19 +02:00
|
|
|
returns:
|
|
|
|
|
binary: binary
|
2022-02-28 20:52:54 +01:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
setExtraHTTPHeaders:
|
|
|
|
|
parameters:
|
|
|
|
|
headers:
|
|
|
|
|
type: array
|
2020-11-13 23:24:53 +01:00
|
|
|
items: NameValue
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
setNetworkInterceptionEnabled:
|
|
|
|
|
parameters:
|
|
|
|
|
enabled: boolean
|
|
|
|
|
|
|
|
|
|
setViewportSize:
|
|
|
|
|
parameters:
|
|
|
|
|
viewportSize:
|
|
|
|
|
type: object
|
|
|
|
|
properties:
|
|
|
|
|
width: number
|
|
|
|
|
height: number
|
2021-06-30 00:28:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
keyboardDown:
|
|
|
|
|
parameters:
|
|
|
|
|
key: string
|
2021-06-30 00:28:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
keyboardUp:
|
|
|
|
|
parameters:
|
|
|
|
|
key: string
|
2021-06-30 00:28:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
keyboardInsertText:
|
|
|
|
|
parameters:
|
|
|
|
|
text: string
|
2021-06-30 00:28:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
keyboardType:
|
|
|
|
|
parameters:
|
|
|
|
|
text: string
|
|
|
|
|
delay: number?
|
2021-06-30 00:28:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
keyboardPress:
|
|
|
|
|
parameters:
|
|
|
|
|
key: string
|
|
|
|
|
delay: number?
|
2021-06-30 00:28:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
mouseMove:
|
|
|
|
|
parameters:
|
|
|
|
|
x: number
|
|
|
|
|
y: number
|
|
|
|
|
steps: number?
|
2021-06-30 00:28:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
mouseDown:
|
|
|
|
|
parameters:
|
|
|
|
|
button:
|
|
|
|
|
type: enum?
|
|
|
|
|
literals:
|
|
|
|
|
- left
|
|
|
|
|
- right
|
|
|
|
|
- middle
|
|
|
|
|
clickCount: number?
|
2021-06-30 00:28:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
mouseUp:
|
|
|
|
|
parameters:
|
|
|
|
|
button:
|
|
|
|
|
type: enum?
|
|
|
|
|
literals:
|
|
|
|
|
- left
|
|
|
|
|
- right
|
|
|
|
|
- middle
|
|
|
|
|
clickCount: number?
|
2021-06-30 00:28:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
mouseClick:
|
|
|
|
|
parameters:
|
|
|
|
|
x: number
|
|
|
|
|
y: number
|
|
|
|
|
delay: number?
|
|
|
|
|
button:
|
|
|
|
|
type: enum?
|
|
|
|
|
literals:
|
|
|
|
|
- left
|
|
|
|
|
- right
|
|
|
|
|
- middle
|
|
|
|
|
clickCount: number?
|
2021-06-30 00:28:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2020-07-23 04:38:19 +02:00
|
|
|
|
2021-09-14 21:22:52 +02:00
|
|
|
mouseWheel:
|
|
|
|
|
parameters:
|
|
|
|
|
deltaX: number
|
|
|
|
|
deltaY: number
|
|
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
|
|
|
|
|
2020-10-19 19:07:33 +02:00
|
|
|
touchscreenTap:
|
|
|
|
|
parameters:
|
|
|
|
|
x: number
|
|
|
|
|
y: number
|
2021-06-30 00:28:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2020-10-19 19:07:33 +02:00
|
|
|
|
2020-07-23 04:38:19 +02:00
|
|
|
accessibilitySnapshot:
|
|
|
|
|
parameters:
|
|
|
|
|
interestingOnly: boolean?
|
|
|
|
|
root: ElementHandle?
|
|
|
|
|
returns:
|
|
|
|
|
rootAXNode: AXNode?
|
|
|
|
|
|
|
|
|
|
pdf:
|
|
|
|
|
parameters:
|
|
|
|
|
scale: number?
|
|
|
|
|
displayHeaderFooter: boolean?
|
|
|
|
|
headerTemplate: string?
|
|
|
|
|
footerTemplate: string?
|
|
|
|
|
printBackground: boolean?
|
|
|
|
|
landscape: boolean?
|
|
|
|
|
pageRanges: string?
|
|
|
|
|
format: string?
|
|
|
|
|
width: string?
|
|
|
|
|
height: string?
|
|
|
|
|
preferCSSPageSize: boolean?
|
|
|
|
|
margin:
|
|
|
|
|
type: object?
|
|
|
|
|
properties:
|
|
|
|
|
top: string?
|
|
|
|
|
bottom: string?
|
|
|
|
|
left: string?
|
|
|
|
|
right: string?
|
|
|
|
|
returns:
|
|
|
|
|
pdf: binary
|
|
|
|
|
|
2021-04-02 03:47:14 +02:00
|
|
|
startJSCoverage:
|
2020-07-23 04:38:19 +02:00
|
|
|
parameters:
|
|
|
|
|
resetOnNavigation: boolean?
|
|
|
|
|
reportAnonymousScripts: boolean?
|
|
|
|
|
|
2021-04-02 03:47:14 +02:00
|
|
|
stopJSCoverage:
|
2020-07-23 04:38:19 +02:00
|
|
|
returns:
|
|
|
|
|
entries:
|
|
|
|
|
type: array
|
|
|
|
|
items:
|
|
|
|
|
type: object
|
|
|
|
|
properties:
|
|
|
|
|
url: string
|
|
|
|
|
scriptId: string
|
|
|
|
|
source: string?
|
|
|
|
|
functions:
|
|
|
|
|
type: array
|
|
|
|
|
items:
|
|
|
|
|
type: object
|
|
|
|
|
properties:
|
|
|
|
|
functionName: string
|
|
|
|
|
isBlockCoverage: boolean
|
|
|
|
|
ranges:
|
|
|
|
|
type: array
|
|
|
|
|
items:
|
|
|
|
|
type: object
|
|
|
|
|
properties:
|
|
|
|
|
startOffset: number
|
|
|
|
|
endOffset: number
|
|
|
|
|
count: number
|
|
|
|
|
|
2021-04-02 03:47:14 +02:00
|
|
|
startCSSCoverage:
|
2020-07-23 04:38:19 +02:00
|
|
|
parameters:
|
|
|
|
|
resetOnNavigation: boolean?
|
|
|
|
|
|
2021-04-02 03:47:14 +02:00
|
|
|
stopCSSCoverage:
|
2020-07-23 04:38:19 +02:00
|
|
|
returns:
|
|
|
|
|
entries:
|
|
|
|
|
type: array
|
|
|
|
|
items:
|
|
|
|
|
type: object
|
|
|
|
|
properties:
|
|
|
|
|
url: string
|
|
|
|
|
text: string?
|
|
|
|
|
ranges:
|
|
|
|
|
type: array
|
|
|
|
|
items:
|
|
|
|
|
type: object
|
|
|
|
|
properties:
|
|
|
|
|
start: number
|
|
|
|
|
end: number
|
|
|
|
|
|
|
|
|
|
bringToFront:
|
|
|
|
|
|
|
|
|
|
events:
|
|
|
|
|
|
|
|
|
|
bindingCall:
|
|
|
|
|
parameters:
|
|
|
|
|
binding: BindingCall
|
|
|
|
|
|
|
|
|
|
close:
|
|
|
|
|
|
|
|
|
|
console:
|
|
|
|
|
parameters:
|
|
|
|
|
message: ConsoleMessage
|
|
|
|
|
|
|
|
|
|
crash:
|
|
|
|
|
|
|
|
|
|
dialog:
|
|
|
|
|
parameters:
|
|
|
|
|
dialog: Dialog
|
|
|
|
|
|
|
|
|
|
download:
|
|
|
|
|
parameters:
|
2021-03-31 19:38:05 +02:00
|
|
|
url: string
|
|
|
|
|
suggestedFilename: string
|
|
|
|
|
artifact: Artifact
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
fileChooser:
|
|
|
|
|
parameters:
|
|
|
|
|
element: ElementHandle
|
|
|
|
|
isMultiple: boolean
|
|
|
|
|
|
|
|
|
|
frameAttached:
|
|
|
|
|
parameters:
|
|
|
|
|
frame: Frame
|
|
|
|
|
|
|
|
|
|
frameDetached:
|
|
|
|
|
parameters:
|
|
|
|
|
frame: Frame
|
|
|
|
|
|
|
|
|
|
pageError:
|
|
|
|
|
parameters:
|
|
|
|
|
error: SerializedError
|
|
|
|
|
|
|
|
|
|
route:
|
|
|
|
|
parameters:
|
|
|
|
|
route: Route
|
|
|
|
|
request: Request
|
|
|
|
|
|
2020-10-14 07:15:51 +02:00
|
|
|
video:
|
|
|
|
|
parameters:
|
2021-03-31 19:38:05 +02:00
|
|
|
artifact: Artifact
|
2020-10-14 07:15:51 +02:00
|
|
|
|
2020-10-27 06:20:43 +01:00
|
|
|
webSocket:
|
|
|
|
|
parameters:
|
|
|
|
|
webSocket: WebSocket
|
|
|
|
|
|
2020-07-23 04:38:19 +02:00
|
|
|
worker:
|
|
|
|
|
parameters:
|
|
|
|
|
worker: Worker
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Frame:
|
|
|
|
|
type: interface
|
|
|
|
|
|
|
|
|
|
initializer:
|
|
|
|
|
url: string
|
|
|
|
|
name: string
|
|
|
|
|
parentFrame: Frame?
|
|
|
|
|
loadStates:
|
|
|
|
|
type: array
|
2021-11-02 01:12:19 +01:00
|
|
|
items: LifecycleEvent
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
commands:
|
|
|
|
|
|
|
|
|
|
evalOnSelector:
|
|
|
|
|
parameters:
|
|
|
|
|
selector: string
|
2021-07-27 07:00:23 +02:00
|
|
|
strict: boolean?
|
2020-07-23 04:38:19 +02:00
|
|
|
expression: string
|
2021-02-03 22:49:25 +01:00
|
|
|
isFunction: boolean?
|
2020-07-23 04:38:19 +02:00
|
|
|
arg: SerializedArgument
|
|
|
|
|
returns:
|
|
|
|
|
value: SerializedValue
|
2021-06-30 00:28:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
evalOnSelectorAll:
|
|
|
|
|
parameters:
|
|
|
|
|
selector: string
|
|
|
|
|
expression: string
|
2021-02-03 22:49:25 +01:00
|
|
|
isFunction: boolean?
|
2020-07-23 04:38:19 +02:00
|
|
|
arg: SerializedArgument
|
|
|
|
|
returns:
|
|
|
|
|
value: SerializedValue
|
2021-06-30 00:28:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
addScriptTag:
|
|
|
|
|
parameters:
|
|
|
|
|
url: string?
|
|
|
|
|
content: string?
|
|
|
|
|
type: string?
|
|
|
|
|
returns:
|
|
|
|
|
element: ElementHandle
|
2021-06-30 00:28:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
addStyleTag:
|
|
|
|
|
parameters:
|
|
|
|
|
url: string?
|
|
|
|
|
content: string?
|
|
|
|
|
returns:
|
|
|
|
|
element: ElementHandle
|
2021-06-30 00:28:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
check:
|
|
|
|
|
parameters:
|
|
|
|
|
selector: string
|
2021-07-27 07:00:23 +02:00
|
|
|
strict: boolean?
|
2020-07-23 04:38:19 +02:00
|
|
|
force: boolean?
|
|
|
|
|
noWaitAfter: boolean?
|
2021-04-12 21:41:25 +02:00
|
|
|
position: Point?
|
2020-07-23 04:38:19 +02:00
|
|
|
timeout: number?
|
2021-04-21 21:22:19 +02:00
|
|
|
trial: boolean?
|
2021-06-30 00:28:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2021-09-18 00:24:15 +02:00
|
|
|
pausesBeforeInput: true
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
click:
|
|
|
|
|
parameters:
|
|
|
|
|
selector: string
|
2021-07-27 07:00:23 +02:00
|
|
|
strict: boolean?
|
2020-07-23 04:38:19 +02:00
|
|
|
force: boolean?
|
|
|
|
|
noWaitAfter: boolean?
|
|
|
|
|
modifiers:
|
|
|
|
|
type: array?
|
|
|
|
|
items:
|
|
|
|
|
type: enum
|
|
|
|
|
literals:
|
|
|
|
|
- Alt
|
|
|
|
|
- Control
|
|
|
|
|
- Meta
|
|
|
|
|
- Shift
|
2020-12-10 00:06:57 +01:00
|
|
|
position: Point?
|
2020-07-23 04:38:19 +02:00
|
|
|
delay: number?
|
|
|
|
|
button:
|
|
|
|
|
type: enum?
|
|
|
|
|
literals:
|
|
|
|
|
- left
|
|
|
|
|
- right
|
|
|
|
|
- middle
|
|
|
|
|
clickCount: number?
|
|
|
|
|
timeout: number?
|
2021-04-21 21:22:19 +02:00
|
|
|
trial: boolean?
|
2021-06-30 00:28:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2021-09-18 00:24:15 +02:00
|
|
|
pausesBeforeInput: true
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
content:
|
|
|
|
|
returns:
|
|
|
|
|
value: string
|
|
|
|
|
|
2021-07-19 19:42:55 +02:00
|
|
|
dragAndDrop:
|
|
|
|
|
parameters:
|
|
|
|
|
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-09-18 00:24:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
|
|
|
|
pausesBeforeInput: true
|
2021-07-19 19:42:55 +02:00
|
|
|
|
2020-07-23 04:38:19 +02:00
|
|
|
dblclick:
|
|
|
|
|
parameters:
|
|
|
|
|
selector: string
|
2021-07-27 07:00:23 +02:00
|
|
|
strict: boolean?
|
2020-07-23 04:38:19 +02:00
|
|
|
force: boolean?
|
2020-07-29 20:45:19 +02:00
|
|
|
noWaitAfter: boolean?
|
2020-07-23 04:38:19 +02:00
|
|
|
modifiers:
|
|
|
|
|
type: array?
|
|
|
|
|
items:
|
|
|
|
|
type: enum
|
|
|
|
|
literals:
|
|
|
|
|
- Alt
|
|
|
|
|
- Control
|
|
|
|
|
- Meta
|
|
|
|
|
- Shift
|
2020-12-10 00:06:57 +01:00
|
|
|
position: Point?
|
2020-07-23 04:38:19 +02:00
|
|
|
delay: number?
|
|
|
|
|
button:
|
|
|
|
|
type: enum?
|
|
|
|
|
literals:
|
|
|
|
|
- left
|
|
|
|
|
- right
|
|
|
|
|
- middle
|
|
|
|
|
timeout: number?
|
2021-04-21 21:22:19 +02:00
|
|
|
trial: boolean?
|
2021-06-30 00:28:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2021-09-18 00:24:15 +02:00
|
|
|
pausesBeforeInput: true
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
dispatchEvent:
|
|
|
|
|
parameters:
|
|
|
|
|
selector: string
|
2021-07-27 07:00:23 +02:00
|
|
|
strict: boolean?
|
2020-07-23 04:38:19 +02:00
|
|
|
type: string
|
|
|
|
|
eventInit: SerializedArgument
|
|
|
|
|
timeout: number?
|
2021-06-30 00:28:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
evaluateExpression:
|
|
|
|
|
parameters:
|
|
|
|
|
expression: string
|
2021-02-10 23:00:02 +01:00
|
|
|
isFunction: boolean?
|
2020-07-23 04:38:19 +02:00
|
|
|
arg: SerializedArgument
|
|
|
|
|
returns:
|
|
|
|
|
value: SerializedValue
|
2021-06-30 00:28:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
evaluateExpressionHandle:
|
|
|
|
|
parameters:
|
|
|
|
|
expression: string
|
2021-02-03 22:49:25 +01:00
|
|
|
isFunction: boolean?
|
2020-07-23 04:38:19 +02:00
|
|
|
arg: SerializedArgument
|
|
|
|
|
returns:
|
|
|
|
|
handle: JSHandle
|
2021-06-30 00:28:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
fill:
|
|
|
|
|
parameters:
|
|
|
|
|
selector: string
|
2021-07-27 07:00:23 +02:00
|
|
|
strict: boolean?
|
2020-07-23 04:38:19 +02:00
|
|
|
value: string
|
2021-06-24 17:18:09 +02:00
|
|
|
force: boolean?
|
2020-07-23 04:38:19 +02:00
|
|
|
timeout: number?
|
|
|
|
|
noWaitAfter: boolean?
|
2021-06-30 00:28:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2021-09-18 00:24:15 +02:00
|
|
|
pausesBeforeInput: true
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
focus:
|
|
|
|
|
parameters:
|
|
|
|
|
selector: string
|
2021-07-27 07:00:23 +02:00
|
|
|
strict: boolean?
|
2020-07-23 04:38:19 +02:00
|
|
|
timeout: number?
|
2021-06-30 00:28:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
frameElement:
|
|
|
|
|
returns:
|
|
|
|
|
element: ElementHandle
|
|
|
|
|
|
2022-01-12 16:37:48 +01:00
|
|
|
highlight:
|
|
|
|
|
parameters:
|
|
|
|
|
selector: string
|
|
|
|
|
|
2020-07-23 04:38:19 +02:00
|
|
|
getAttribute:
|
|
|
|
|
parameters:
|
|
|
|
|
selector: string
|
2021-07-27 07:00:23 +02:00
|
|
|
strict: boolean?
|
2020-07-23 04:38:19 +02:00
|
|
|
name: string
|
|
|
|
|
timeout: number?
|
|
|
|
|
returns:
|
|
|
|
|
value: string?
|
2021-06-30 00:28:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
goto:
|
|
|
|
|
parameters:
|
|
|
|
|
url: string
|
|
|
|
|
timeout: number?
|
2021-11-02 01:12:19 +01:00
|
|
|
waitUntil: LifecycleEvent?
|
2020-07-23 04:38:19 +02:00
|
|
|
referer: string?
|
|
|
|
|
returns:
|
|
|
|
|
response: Response?
|
2021-06-30 00:28:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
hover:
|
|
|
|
|
parameters:
|
|
|
|
|
selector: string
|
2021-07-27 07:00:23 +02:00
|
|
|
strict: boolean?
|
2020-07-23 04:38:19 +02:00
|
|
|
force: boolean?
|
|
|
|
|
modifiers:
|
|
|
|
|
type: array?
|
|
|
|
|
items:
|
|
|
|
|
type: enum
|
|
|
|
|
literals:
|
|
|
|
|
- Alt
|
|
|
|
|
- Control
|
|
|
|
|
- Meta
|
|
|
|
|
- Shift
|
2020-12-10 00:06:57 +01:00
|
|
|
position: Point?
|
2020-07-23 04:38:19 +02:00
|
|
|
timeout: number?
|
2021-04-21 21:22:19 +02:00
|
|
|
trial: boolean?
|
2021-06-30 00:28:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2021-09-18 00:24:15 +02:00
|
|
|
pausesBeforeInput: true
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
innerHTML:
|
|
|
|
|
parameters:
|
|
|
|
|
selector: string
|
2021-07-27 07:00:23 +02:00
|
|
|
strict: boolean?
|
2020-07-23 04:38:19 +02:00
|
|
|
timeout: number?
|
|
|
|
|
returns:
|
|
|
|
|
value: string
|
2021-06-30 00:28:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
innerText:
|
|
|
|
|
parameters:
|
|
|
|
|
selector: string
|
2021-07-27 07:00:23 +02:00
|
|
|
strict: boolean?
|
2020-07-23 04:38:19 +02:00
|
|
|
timeout: number?
|
|
|
|
|
returns:
|
|
|
|
|
value: string
|
2021-06-30 00:28:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2020-07-23 04:38:19 +02:00
|
|
|
|
2021-06-24 07:19:20 +02:00
|
|
|
inputValue:
|
|
|
|
|
parameters:
|
|
|
|
|
selector: string
|
2021-07-27 07:00:23 +02:00
|
|
|
strict: boolean?
|
2021-06-24 07:19:20 +02:00
|
|
|
timeout: number?
|
|
|
|
|
returns:
|
|
|
|
|
value: string
|
2021-06-30 00:28:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2021-06-24 07:19:20 +02:00
|
|
|
|
2021-01-09 02:36:17 +01:00
|
|
|
isChecked:
|
|
|
|
|
parameters:
|
|
|
|
|
selector: string
|
2021-07-27 07:00:23 +02:00
|
|
|
strict: boolean?
|
2021-01-09 02:36:17 +01:00
|
|
|
timeout: number?
|
|
|
|
|
returns:
|
|
|
|
|
value: boolean
|
2021-06-30 00:28:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2021-01-09 02:36:17 +01:00
|
|
|
|
2021-01-08 21:27:54 +01:00
|
|
|
isDisabled:
|
|
|
|
|
parameters:
|
|
|
|
|
selector: string
|
2021-07-27 07:00:23 +02:00
|
|
|
strict: boolean?
|
2021-01-08 21:27:54 +01:00
|
|
|
timeout: number?
|
|
|
|
|
returns:
|
|
|
|
|
value: boolean
|
2021-06-30 00:28:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2021-01-08 21:27:54 +01:00
|
|
|
|
|
|
|
|
isEnabled:
|
|
|
|
|
parameters:
|
|
|
|
|
selector: string
|
2021-07-27 07:00:23 +02:00
|
|
|
strict: boolean?
|
2021-01-08 21:27:54 +01:00
|
|
|
timeout: number?
|
|
|
|
|
returns:
|
|
|
|
|
value: boolean
|
2021-06-30 00:28:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2021-01-08 21:27:54 +01:00
|
|
|
|
|
|
|
|
isHidden:
|
|
|
|
|
parameters:
|
|
|
|
|
selector: string
|
2021-07-27 07:00:23 +02:00
|
|
|
strict: boolean?
|
2021-01-08 21:27:54 +01:00
|
|
|
returns:
|
|
|
|
|
value: boolean
|
2021-09-18 00:24:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2021-01-08 21:27:54 +01:00
|
|
|
|
|
|
|
|
isVisible:
|
|
|
|
|
parameters:
|
|
|
|
|
selector: string
|
2021-07-27 07:00:23 +02:00
|
|
|
strict: boolean?
|
2021-01-08 21:27:54 +01:00
|
|
|
returns:
|
|
|
|
|
value: boolean
|
2021-09-18 00:24:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2021-01-08 21:27:54 +01:00
|
|
|
|
|
|
|
|
isEditable:
|
|
|
|
|
parameters:
|
|
|
|
|
selector: string
|
2021-07-27 07:00:23 +02:00
|
|
|
strict: boolean?
|
2021-01-08 21:27:54 +01:00
|
|
|
timeout: number?
|
|
|
|
|
returns:
|
|
|
|
|
value: boolean
|
2021-06-30 00:28:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2021-01-08 21:27:54 +01:00
|
|
|
|
2020-07-23 04:38:19 +02:00
|
|
|
press:
|
|
|
|
|
parameters:
|
|
|
|
|
selector: string
|
2021-07-27 07:00:23 +02:00
|
|
|
strict: boolean?
|
2020-07-23 04:38:19 +02:00
|
|
|
key: string
|
|
|
|
|
delay: number?
|
|
|
|
|
noWaitAfter: boolean?
|
|
|
|
|
timeout: number?
|
2021-06-30 00:28:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2021-09-18 00:24:15 +02:00
|
|
|
pausesBeforeInput: true
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
querySelector:
|
|
|
|
|
parameters:
|
|
|
|
|
selector: string
|
2021-07-27 07:00:23 +02:00
|
|
|
strict: boolean?
|
2020-07-23 04:38:19 +02:00
|
|
|
returns:
|
|
|
|
|
element: ElementHandle?
|
|
|
|
|
|
|
|
|
|
querySelectorAll:
|
|
|
|
|
parameters:
|
|
|
|
|
selector: string
|
|
|
|
|
returns:
|
|
|
|
|
elements:
|
|
|
|
|
type: array
|
|
|
|
|
items: ElementHandle
|
|
|
|
|
|
2022-01-08 00:52:14 +01:00
|
|
|
queryCount:
|
|
|
|
|
parameters:
|
|
|
|
|
selector: string
|
|
|
|
|
returns:
|
|
|
|
|
value: number
|
|
|
|
|
|
2020-07-23 04:38:19 +02:00
|
|
|
selectOption:
|
|
|
|
|
parameters:
|
|
|
|
|
selector: string
|
2021-07-27 07:00:23 +02:00
|
|
|
strict: boolean?
|
2020-07-23 04:38:19 +02:00
|
|
|
elements:
|
|
|
|
|
type: array?
|
|
|
|
|
items: ElementHandle
|
|
|
|
|
options:
|
|
|
|
|
type: array?
|
|
|
|
|
items:
|
|
|
|
|
type: object
|
|
|
|
|
properties:
|
|
|
|
|
value: string?
|
|
|
|
|
label: string?
|
|
|
|
|
index: number?
|
2021-06-24 17:18:09 +02:00
|
|
|
force: boolean?
|
2020-07-23 04:38:19 +02:00
|
|
|
timeout: number?
|
|
|
|
|
noWaitAfter: boolean?
|
|
|
|
|
returns:
|
|
|
|
|
values:
|
|
|
|
|
type: array
|
|
|
|
|
items: string
|
2021-06-30 00:28:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2021-09-18 00:24:15 +02:00
|
|
|
pausesBeforeInput: true
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
setContent:
|
|
|
|
|
parameters:
|
|
|
|
|
html: string
|
|
|
|
|
timeout: number?
|
2021-11-02 01:12:19 +01:00
|
|
|
waitUntil: LifecycleEvent?
|
2021-06-30 00:28:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
setInputFiles:
|
|
|
|
|
parameters:
|
|
|
|
|
selector: string
|
2021-07-27 07:00:23 +02:00
|
|
|
strict: boolean?
|
2020-07-23 04:38:19 +02:00
|
|
|
files:
|
|
|
|
|
type: array
|
|
|
|
|
items:
|
|
|
|
|
type: object
|
|
|
|
|
properties:
|
|
|
|
|
name: string
|
2021-05-19 03:30:20 +02:00
|
|
|
mimeType: string?
|
2020-10-28 18:55:20 +01:00
|
|
|
buffer: binary
|
2020-07-23 04:38:19 +02:00
|
|
|
timeout: number?
|
|
|
|
|
noWaitAfter: boolean?
|
2021-06-30 00:28:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2021-09-18 00:24:15 +02:00
|
|
|
pausesBeforeInput: true
|
2020-07-23 04:38:19 +02:00
|
|
|
|
2022-03-18 17:00:52 +01:00
|
|
|
# This method should be used if one of the files is large (>50Mb).
|
|
|
|
|
setInputFilePaths:
|
|
|
|
|
parameters:
|
|
|
|
|
selector: string
|
|
|
|
|
strict: boolean?
|
|
|
|
|
# Only one of localPaths and streams should be present.
|
|
|
|
|
localPaths:
|
|
|
|
|
type: array?
|
|
|
|
|
items: string
|
|
|
|
|
streams:
|
|
|
|
|
type: array?
|
|
|
|
|
items: WritableStream
|
|
|
|
|
timeout: number?
|
|
|
|
|
noWaitAfter: boolean?
|
|
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
|
|
|
|
pausesBeforeInput: true
|
|
|
|
|
|
2020-10-19 19:07:33 +02:00
|
|
|
tap:
|
|
|
|
|
parameters:
|
|
|
|
|
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:
|
|
|
|
|
type: array?
|
|
|
|
|
items:
|
|
|
|
|
type: enum
|
|
|
|
|
literals:
|
|
|
|
|
- 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?
|
2021-06-30 00:28:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2021-09-18 00:24:15 +02:00
|
|
|
pausesBeforeInput: true
|
2020-10-19 19:07:33 +02:00
|
|
|
|
2020-07-23 04:38:19 +02:00
|
|
|
textContent:
|
|
|
|
|
parameters:
|
|
|
|
|
selector: string
|
2021-07-27 07:00:23 +02:00
|
|
|
strict: boolean?
|
2020-07-23 04:38:19 +02:00
|
|
|
timeout: number?
|
|
|
|
|
returns:
|
|
|
|
|
value: string?
|
2021-06-30 00:28:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
title:
|
|
|
|
|
returns:
|
|
|
|
|
value: string
|
|
|
|
|
|
|
|
|
|
type:
|
|
|
|
|
parameters:
|
|
|
|
|
selector: string
|
2021-07-27 07:00:23 +02:00
|
|
|
strict: boolean?
|
2020-07-23 04:38:19 +02:00
|
|
|
text: string
|
|
|
|
|
delay: number?
|
|
|
|
|
noWaitAfter: boolean?
|
|
|
|
|
timeout: number?
|
2021-06-30 00:28:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2021-09-18 00:24:15 +02:00
|
|
|
pausesBeforeInput: true
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
uncheck:
|
|
|
|
|
parameters:
|
|
|
|
|
selector: string
|
2021-07-27 07:00:23 +02:00
|
|
|
strict: boolean?
|
2020-07-23 04:38:19 +02:00
|
|
|
force: boolean?
|
|
|
|
|
noWaitAfter: boolean?
|
2021-04-12 21:41:25 +02:00
|
|
|
position: Point?
|
2020-07-23 04:38:19 +02:00
|
|
|
timeout: number?
|
2021-04-21 21:22:19 +02:00
|
|
|
trial: boolean?
|
2021-06-30 00:28:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2021-09-18 00:24:15 +02:00
|
|
|
pausesBeforeInput: true
|
2020-07-23 04:38:19 +02:00
|
|
|
|
2021-09-21 22:06:14 +02:00
|
|
|
waitForTimeout:
|
|
|
|
|
parameters:
|
|
|
|
|
timeout: number
|
|
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
|
|
|
|
|
2020-07-23 04:38:19 +02:00
|
|
|
waitForFunction:
|
|
|
|
|
parameters:
|
|
|
|
|
expression: string
|
2021-02-03 22:49:25 +01:00
|
|
|
isFunction: boolean?
|
2020-07-23 04:38:19 +02:00
|
|
|
arg: SerializedArgument
|
|
|
|
|
timeout: number?
|
|
|
|
|
# When present, polls on interval. Otherwise, polls on raf.
|
|
|
|
|
pollingInterval: number?
|
|
|
|
|
returns:
|
|
|
|
|
handle: JSHandle
|
2021-06-30 00:28:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
waitForSelector:
|
|
|
|
|
parameters:
|
|
|
|
|
selector: string
|
2021-07-27 07:00:23 +02:00
|
|
|
strict: boolean?
|
2020-07-23 04:38:19 +02:00
|
|
|
timeout: number?
|
|
|
|
|
state:
|
|
|
|
|
type: enum?
|
|
|
|
|
literals:
|
|
|
|
|
- attached
|
|
|
|
|
- detached
|
|
|
|
|
- visible
|
|
|
|
|
- hidden
|
2021-09-28 22:57:11 +02:00
|
|
|
omitReturnValue: boolean?
|
2020-07-23 04:38:19 +02:00
|
|
|
returns:
|
|
|
|
|
element: ElementHandle?
|
2021-06-30 00:28:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2020-07-23 04:38:19 +02:00
|
|
|
|
2021-09-24 01:46:46 +02:00
|
|
|
expect:
|
|
|
|
|
parameters:
|
|
|
|
|
selector: string
|
|
|
|
|
expression: string
|
2021-09-24 20:06:30 +02:00
|
|
|
expressionArg: json?
|
|
|
|
|
expectedText:
|
|
|
|
|
type: array?
|
|
|
|
|
items: 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?
|
|
|
|
|
returns:
|
2021-10-13 17:56:57 +02:00
|
|
|
matches: boolean
|
2021-09-24 20:06:30 +02:00
|
|
|
received: SerializedValue?
|
|
|
|
|
log:
|
|
|
|
|
type: array?
|
|
|
|
|
items: string
|
2021-09-24 01:46:46 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
|
|
|
|
|
2020-07-23 04:38:19 +02:00
|
|
|
events:
|
|
|
|
|
|
|
|
|
|
loadstate:
|
|
|
|
|
parameters:
|
2021-11-02 01:12:19 +01:00
|
|
|
add: LifecycleEvent?
|
|
|
|
|
remove: LifecycleEvent?
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
navigated:
|
|
|
|
|
parameters:
|
|
|
|
|
url: string
|
|
|
|
|
name: string
|
|
|
|
|
newDocument:
|
|
|
|
|
type: object?
|
|
|
|
|
properties:
|
|
|
|
|
request: Request?
|
|
|
|
|
error: string?
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Worker:
|
|
|
|
|
type: interface
|
|
|
|
|
|
|
|
|
|
initializer:
|
|
|
|
|
url: string
|
|
|
|
|
|
|
|
|
|
commands:
|
|
|
|
|
|
|
|
|
|
evaluateExpression:
|
|
|
|
|
parameters:
|
|
|
|
|
expression: string
|
2021-02-03 22:49:25 +01:00
|
|
|
isFunction: boolean?
|
2020-07-23 04:38:19 +02:00
|
|
|
arg: SerializedArgument
|
|
|
|
|
returns:
|
|
|
|
|
value: SerializedValue
|
|
|
|
|
|
|
|
|
|
evaluateExpressionHandle:
|
|
|
|
|
parameters:
|
|
|
|
|
expression: string
|
2021-02-03 22:49:25 +01:00
|
|
|
isFunction: boolean?
|
2020-07-23 04:38:19 +02:00
|
|
|
arg: SerializedArgument
|
|
|
|
|
returns:
|
|
|
|
|
handle: JSHandle
|
|
|
|
|
|
2020-08-08 00:40:21 +02:00
|
|
|
events:
|
|
|
|
|
|
|
|
|
|
close:
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
JSHandle:
|
|
|
|
|
type: interface
|
|
|
|
|
|
|
|
|
|
initializer:
|
|
|
|
|
preview: string
|
|
|
|
|
|
|
|
|
|
commands:
|
|
|
|
|
|
|
|
|
|
dispose:
|
|
|
|
|
|
|
|
|
|
evaluateExpression:
|
|
|
|
|
parameters:
|
|
|
|
|
expression: string
|
2021-02-03 22:49:25 +01:00
|
|
|
isFunction: boolean?
|
2020-07-23 04:38:19 +02:00
|
|
|
arg: SerializedArgument
|
|
|
|
|
returns:
|
|
|
|
|
value: SerializedValue
|
2021-06-30 00:28:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
evaluateExpressionHandle:
|
|
|
|
|
parameters:
|
|
|
|
|
expression: string
|
2021-02-03 22:49:25 +01:00
|
|
|
isFunction: boolean?
|
2020-07-23 04:38:19 +02:00
|
|
|
arg: SerializedArgument
|
|
|
|
|
returns:
|
|
|
|
|
handle: JSHandle
|
2021-06-30 00:28:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
getPropertyList:
|
|
|
|
|
returns:
|
|
|
|
|
properties:
|
|
|
|
|
type: array
|
|
|
|
|
items:
|
|
|
|
|
type: object
|
|
|
|
|
properties:
|
|
|
|
|
name: string
|
|
|
|
|
value: JSHandle
|
|
|
|
|
|
|
|
|
|
getProperty:
|
|
|
|
|
parameters:
|
|
|
|
|
name: string
|
|
|
|
|
returns:
|
|
|
|
|
handle: JSHandle
|
|
|
|
|
|
|
|
|
|
jsonValue:
|
|
|
|
|
returns:
|
|
|
|
|
value: SerializedValue
|
|
|
|
|
|
|
|
|
|
events:
|
|
|
|
|
|
|
|
|
|
previewUpdated:
|
|
|
|
|
parameters:
|
|
|
|
|
preview: string
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ElementHandle:
|
|
|
|
|
type: interface
|
|
|
|
|
|
|
|
|
|
extends: JSHandle
|
|
|
|
|
|
|
|
|
|
commands:
|
|
|
|
|
|
|
|
|
|
evalOnSelector:
|
|
|
|
|
parameters:
|
|
|
|
|
selector: string
|
2021-07-27 07:00:23 +02:00
|
|
|
strict: boolean?
|
2020-07-23 04:38:19 +02:00
|
|
|
expression: string
|
2021-02-03 22:49:25 +01:00
|
|
|
isFunction: boolean?
|
2020-07-23 04:38:19 +02:00
|
|
|
arg: SerializedArgument
|
|
|
|
|
returns:
|
|
|
|
|
value: SerializedValue
|
2021-06-30 00:28:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
evalOnSelectorAll:
|
|
|
|
|
parameters:
|
|
|
|
|
selector: string
|
|
|
|
|
expression: string
|
2021-02-03 22:49:25 +01:00
|
|
|
isFunction: boolean?
|
2020-07-23 04:38:19 +02:00
|
|
|
arg: SerializedArgument
|
|
|
|
|
returns:
|
|
|
|
|
value: SerializedValue
|
2021-06-30 00:28:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
boundingBox:
|
|
|
|
|
returns:
|
2020-12-10 00:06:57 +01:00
|
|
|
value: Rect?
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
check:
|
|
|
|
|
parameters:
|
|
|
|
|
force: boolean?
|
|
|
|
|
noWaitAfter: boolean?
|
2021-04-12 21:41:25 +02:00
|
|
|
position: Point?
|
2020-07-23 04:38:19 +02:00
|
|
|
timeout: number?
|
2021-04-21 21:22:19 +02:00
|
|
|
trial: boolean?
|
2021-06-30 00:28:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2021-09-18 00:24:15 +02:00
|
|
|
pausesBeforeInput: true
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
click:
|
|
|
|
|
parameters:
|
|
|
|
|
force: boolean?
|
|
|
|
|
noWaitAfter: boolean?
|
|
|
|
|
modifiers:
|
|
|
|
|
type: array?
|
|
|
|
|
items:
|
|
|
|
|
type: enum
|
|
|
|
|
literals:
|
|
|
|
|
- Alt
|
|
|
|
|
- Control
|
|
|
|
|
- Meta
|
|
|
|
|
- Shift
|
2020-12-10 00:06:57 +01:00
|
|
|
position: Point?
|
2020-07-23 04:38:19 +02:00
|
|
|
delay: number?
|
|
|
|
|
button:
|
|
|
|
|
type: enum?
|
|
|
|
|
literals:
|
|
|
|
|
- left
|
|
|
|
|
- right
|
|
|
|
|
- middle
|
|
|
|
|
clickCount: number?
|
|
|
|
|
timeout: number?
|
2021-04-21 21:22:19 +02:00
|
|
|
trial: boolean?
|
2021-06-30 00:28:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2021-09-18 00:24:15 +02:00
|
|
|
pausesBeforeInput: true
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
contentFrame:
|
|
|
|
|
returns:
|
|
|
|
|
frame: Frame?
|
|
|
|
|
|
|
|
|
|
dblclick:
|
|
|
|
|
parameters:
|
|
|
|
|
force: boolean?
|
|
|
|
|
noWaitAfter: boolean?
|
|
|
|
|
modifiers:
|
|
|
|
|
type: array?
|
|
|
|
|
items:
|
|
|
|
|
type: enum
|
|
|
|
|
literals:
|
|
|
|
|
- Alt
|
|
|
|
|
- Control
|
|
|
|
|
- Meta
|
|
|
|
|
- Shift
|
2020-12-10 00:06:57 +01:00
|
|
|
position: Point?
|
2020-07-23 04:38:19 +02:00
|
|
|
delay: number?
|
|
|
|
|
button:
|
|
|
|
|
type: enum?
|
|
|
|
|
literals:
|
|
|
|
|
- left
|
|
|
|
|
- right
|
|
|
|
|
- middle
|
|
|
|
|
timeout: number?
|
2021-04-21 21:22:19 +02:00
|
|
|
trial: boolean?
|
2021-06-30 00:28:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2021-09-18 00:24:15 +02:00
|
|
|
pausesBeforeInput: true
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
dispatchEvent:
|
|
|
|
|
parameters:
|
|
|
|
|
type: string
|
|
|
|
|
eventInit: SerializedArgument
|
2021-06-30 00:28:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
fill:
|
|
|
|
|
parameters:
|
|
|
|
|
value: string
|
2021-06-24 17:18:09 +02:00
|
|
|
force: boolean?
|
2020-07-23 04:38:19 +02:00
|
|
|
timeout: number?
|
|
|
|
|
noWaitAfter: boolean?
|
2021-06-30 00:28:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2021-09-18 00:24:15 +02:00
|
|
|
pausesBeforeInput: true
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
focus:
|
|
|
|
|
|
|
|
|
|
getAttribute:
|
|
|
|
|
parameters:
|
|
|
|
|
name: string
|
|
|
|
|
returns:
|
|
|
|
|
value: string?
|
|
|
|
|
|
|
|
|
|
hover:
|
|
|
|
|
parameters:
|
|
|
|
|
force: boolean?
|
|
|
|
|
modifiers:
|
|
|
|
|
type: array?
|
|
|
|
|
items:
|
|
|
|
|
type: enum
|
|
|
|
|
literals:
|
|
|
|
|
- Alt
|
|
|
|
|
- Control
|
|
|
|
|
- Meta
|
|
|
|
|
- Shift
|
2020-12-10 00:06:57 +01:00
|
|
|
position: Point?
|
2020-07-23 04:38:19 +02:00
|
|
|
timeout: number?
|
2021-04-21 21:22:19 +02:00
|
|
|
trial: boolean?
|
2021-06-30 00:28:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2021-09-18 00:24:15 +02:00
|
|
|
pausesBeforeInput: true
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
innerHTML:
|
|
|
|
|
returns:
|
|
|
|
|
value: string
|
2021-09-18 00:24:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
innerText:
|
|
|
|
|
returns:
|
|
|
|
|
value: string
|
2021-09-18 00:24:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2020-07-23 04:38:19 +02:00
|
|
|
|
2021-06-24 07:19:20 +02:00
|
|
|
inputValue:
|
|
|
|
|
returns:
|
|
|
|
|
value: string
|
2021-09-18 00:24:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2021-06-24 07:19:20 +02:00
|
|
|
|
2021-01-09 02:36:17 +01:00
|
|
|
isChecked:
|
|
|
|
|
returns:
|
|
|
|
|
value: boolean
|
2021-09-18 00:24:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2021-01-09 02:36:17 +01:00
|
|
|
|
2021-01-08 21:27:54 +01:00
|
|
|
isDisabled:
|
|
|
|
|
returns:
|
|
|
|
|
value: boolean
|
2021-09-18 00:24:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2021-01-08 21:27:54 +01:00
|
|
|
|
|
|
|
|
isEditable:
|
|
|
|
|
returns:
|
|
|
|
|
value: boolean
|
2021-09-18 00:24:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2021-01-08 21:27:54 +01:00
|
|
|
|
|
|
|
|
isEnabled:
|
|
|
|
|
returns:
|
|
|
|
|
value: boolean
|
2021-09-18 00:24:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2021-01-08 21:27:54 +01:00
|
|
|
|
|
|
|
|
isHidden:
|
|
|
|
|
returns:
|
|
|
|
|
value: boolean
|
2021-09-18 00:24:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2021-01-08 21:27:54 +01:00
|
|
|
|
|
|
|
|
isVisible:
|
|
|
|
|
returns:
|
|
|
|
|
value: boolean
|
2021-09-18 00:24:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2021-01-08 21:27:54 +01:00
|
|
|
|
2020-07-23 04:38:19 +02:00
|
|
|
ownerFrame:
|
|
|
|
|
returns:
|
|
|
|
|
frame: Frame?
|
|
|
|
|
|
|
|
|
|
press:
|
|
|
|
|
parameters:
|
|
|
|
|
key: string
|
|
|
|
|
delay: number?
|
|
|
|
|
timeout: number?
|
|
|
|
|
noWaitAfter: boolean?
|
2021-06-30 00:28:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2021-09-18 00:24:15 +02:00
|
|
|
pausesBeforeInput: true
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
querySelector:
|
|
|
|
|
parameters:
|
|
|
|
|
selector: string
|
2021-07-27 07:00:23 +02:00
|
|
|
strict: boolean?
|
2020-07-23 04:38:19 +02:00
|
|
|
returns:
|
|
|
|
|
element: ElementHandle?
|
|
|
|
|
|
|
|
|
|
querySelectorAll:
|
|
|
|
|
parameters:
|
|
|
|
|
selector: string
|
|
|
|
|
returns:
|
|
|
|
|
elements:
|
|
|
|
|
type: array
|
|
|
|
|
items: ElementHandle
|
|
|
|
|
|
|
|
|
|
screenshot:
|
|
|
|
|
parameters:
|
|
|
|
|
timeout: number?
|
|
|
|
|
type:
|
|
|
|
|
type: enum?
|
|
|
|
|
literals:
|
|
|
|
|
- png
|
|
|
|
|
- jpeg
|
|
|
|
|
quality: number?
|
2022-03-11 03:36:20 +01:00
|
|
|
$mixin: CommonScreenshotOptions
|
2020-07-23 04:38:19 +02:00
|
|
|
returns:
|
|
|
|
|
binary: binary
|
2022-02-28 20:52:54 +01:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
scrollIntoViewIfNeeded:
|
|
|
|
|
parameters:
|
|
|
|
|
timeout: number?
|
2021-06-30 00:28:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
selectOption:
|
|
|
|
|
parameters:
|
|
|
|
|
elements:
|
|
|
|
|
type: array?
|
|
|
|
|
items: ElementHandle
|
|
|
|
|
options:
|
|
|
|
|
type: array?
|
|
|
|
|
items:
|
|
|
|
|
type: object
|
|
|
|
|
properties:
|
|
|
|
|
value: string?
|
|
|
|
|
label: string?
|
|
|
|
|
index: number?
|
2021-06-24 17:18:09 +02:00
|
|
|
force: boolean?
|
2020-07-23 04:38:19 +02:00
|
|
|
timeout: number?
|
|
|
|
|
noWaitAfter: boolean?
|
|
|
|
|
returns:
|
|
|
|
|
values:
|
|
|
|
|
type: array
|
|
|
|
|
items: string
|
2021-06-30 00:28:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2021-09-18 00:24:15 +02:00
|
|
|
pausesBeforeInput: true
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
selectText:
|
|
|
|
|
parameters:
|
2021-06-24 17:18:09 +02:00
|
|
|
force: boolean?
|
2020-07-23 04:38:19 +02:00
|
|
|
timeout: number?
|
2021-06-30 00:28:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
setInputFiles:
|
|
|
|
|
parameters:
|
|
|
|
|
files:
|
|
|
|
|
type: array
|
|
|
|
|
items:
|
|
|
|
|
type: object
|
|
|
|
|
properties:
|
|
|
|
|
name: string
|
2021-05-19 03:30:20 +02:00
|
|
|
mimeType: string?
|
2020-10-28 18:55:20 +01:00
|
|
|
buffer: binary
|
2020-07-23 04:38:19 +02:00
|
|
|
timeout: number?
|
|
|
|
|
noWaitAfter: boolean?
|
2021-06-30 00:28:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2021-09-18 00:24:15 +02:00
|
|
|
pausesBeforeInput: true
|
2020-07-23 04:38:19 +02:00
|
|
|
|
2022-03-18 17:00:52 +01:00
|
|
|
# This method should be used if one of the files is large (>50Mb).
|
|
|
|
|
setInputFilePaths:
|
|
|
|
|
parameters:
|
|
|
|
|
# Only one of localPaths and streams should be present.
|
|
|
|
|
localPaths:
|
|
|
|
|
type: array?
|
|
|
|
|
items: string
|
|
|
|
|
streams:
|
|
|
|
|
type: array?
|
|
|
|
|
items: WritableStream
|
|
|
|
|
timeout: number?
|
|
|
|
|
noWaitAfter: boolean?
|
|
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
|
|
|
|
pausesBeforeInput: true
|
|
|
|
|
|
2020-10-19 19:07:33 +02:00
|
|
|
tap:
|
|
|
|
|
parameters:
|
|
|
|
|
force: boolean?
|
|
|
|
|
noWaitAfter: boolean?
|
|
|
|
|
modifiers:
|
|
|
|
|
type: array?
|
|
|
|
|
items:
|
|
|
|
|
type: enum
|
|
|
|
|
literals:
|
|
|
|
|
- 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?
|
2021-06-30 00:28:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2021-09-18 00:24:15 +02:00
|
|
|
pausesBeforeInput: true
|
2020-10-19 19:07:33 +02:00
|
|
|
|
2020-07-23 04:38:19 +02:00
|
|
|
textContent:
|
|
|
|
|
returns:
|
|
|
|
|
value: string?
|
2021-09-18 00:24:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
type:
|
|
|
|
|
parameters:
|
|
|
|
|
text: string
|
|
|
|
|
delay: number?
|
|
|
|
|
noWaitAfter: boolean?
|
|
|
|
|
timeout: number?
|
2021-06-30 00:28:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2021-09-18 00:24:15 +02:00
|
|
|
pausesBeforeInput: true
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
uncheck:
|
|
|
|
|
parameters:
|
|
|
|
|
force: boolean?
|
|
|
|
|
noWaitAfter: boolean?
|
2021-04-12 21:41:25 +02:00
|
|
|
position: Point?
|
2020-07-23 04:38:19 +02:00
|
|
|
timeout: number?
|
2021-04-21 21:22:19 +02:00
|
|
|
trial: boolean?
|
2021-06-30 00:28:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2021-09-18 00:24:15 +02:00
|
|
|
pausesBeforeInput: true
|
2020-07-23 04:38:19 +02:00
|
|
|
|
2020-08-18 01:22:34 +02:00
|
|
|
waitForElementState:
|
|
|
|
|
parameters:
|
|
|
|
|
state:
|
|
|
|
|
type: enum
|
|
|
|
|
literals:
|
|
|
|
|
- visible
|
|
|
|
|
- hidden
|
|
|
|
|
- stable
|
|
|
|
|
- enabled
|
2020-08-20 02:20:10 +02:00
|
|
|
- disabled
|
2021-01-08 21:27:54 +01:00
|
|
|
- editable
|
2020-08-18 01:22:34 +02:00
|
|
|
timeout: number?
|
2021-06-30 00:28:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2020-08-18 01:22:34 +02:00
|
|
|
|
2020-08-14 23:47:24 +02:00
|
|
|
waitForSelector:
|
|
|
|
|
parameters:
|
|
|
|
|
selector: string
|
2021-07-27 07:00:23 +02:00
|
|
|
strict: boolean?
|
2020-08-14 23:47:24 +02:00
|
|
|
timeout: number?
|
|
|
|
|
state:
|
|
|
|
|
type: enum?
|
|
|
|
|
literals:
|
|
|
|
|
- attached
|
|
|
|
|
- detached
|
|
|
|
|
- visible
|
|
|
|
|
- hidden
|
|
|
|
|
returns:
|
|
|
|
|
element: ElementHandle?
|
2021-06-30 00:28:15 +02:00
|
|
|
tracing:
|
|
|
|
|
snapshot: true
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
Request:
|
|
|
|
|
type: interface
|
|
|
|
|
|
|
|
|
|
initializer:
|
|
|
|
|
frame: Frame
|
|
|
|
|
url: string
|
|
|
|
|
resourceType: string
|
|
|
|
|
method: string
|
|
|
|
|
postData: binary?
|
|
|
|
|
headers:
|
|
|
|
|
type: array
|
2021-08-30 18:58:44 +02:00
|
|
|
items: NameValue
|
2020-07-23 04:38:19 +02:00
|
|
|
isNavigationRequest: boolean
|
|
|
|
|
redirectedFrom: Request?
|
|
|
|
|
|
|
|
|
|
commands:
|
|
|
|
|
|
|
|
|
|
response:
|
|
|
|
|
returns:
|
|
|
|
|
response: Response?
|
|
|
|
|
|
2021-10-05 01:10:16 +02:00
|
|
|
rawRequestHeaders:
|
|
|
|
|
returns:
|
|
|
|
|
headers:
|
|
|
|
|
type: array
|
|
|
|
|
items: NameValue
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
Route:
|
|
|
|
|
type: interface
|
|
|
|
|
|
|
|
|
|
initializer:
|
|
|
|
|
request: Request
|
|
|
|
|
|
|
|
|
|
commands:
|
|
|
|
|
|
|
|
|
|
abort:
|
|
|
|
|
parameters:
|
2020-07-30 20:14:41 +02:00
|
|
|
errorCode: string?
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
continue:
|
|
|
|
|
parameters:
|
2020-11-16 18:59:00 +01:00
|
|
|
url: string?
|
2020-07-23 04:38:19 +02:00
|
|
|
method: string?
|
|
|
|
|
headers:
|
|
|
|
|
type: array?
|
2020-11-13 23:24:53 +01:00
|
|
|
items: NameValue
|
2020-07-24 21:16:45 +02:00
|
|
|
postData: binary?
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
fulfill:
|
|
|
|
|
parameters:
|
2020-07-30 05:42:14 +02:00
|
|
|
# default is 200
|
|
|
|
|
status: number?
|
2020-07-23 04:38:19 +02:00
|
|
|
headers:
|
2020-07-30 05:42:14 +02:00
|
|
|
type: array?
|
2020-11-13 23:24:53 +01:00
|
|
|
items: NameValue
|
2020-07-30 05:42:14 +02:00
|
|
|
body: string?
|
|
|
|
|
isBase64: boolean?
|
2021-09-08 23:59:12 +02:00
|
|
|
fetchResponseUid: string?
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
|
2020-10-22 08:25:57 +02:00
|
|
|
ResourceTiming:
|
|
|
|
|
type: object
|
|
|
|
|
properties:
|
|
|
|
|
startTime: number
|
|
|
|
|
domainLookupStart: number
|
|
|
|
|
domainLookupEnd: number
|
|
|
|
|
connectStart: number
|
|
|
|
|
secureConnectionStart: number
|
|
|
|
|
connectEnd: number
|
|
|
|
|
requestStart: number
|
|
|
|
|
responseStart: number
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
Response:
|
|
|
|
|
type: interface
|
|
|
|
|
|
|
|
|
|
initializer:
|
|
|
|
|
request: Request
|
|
|
|
|
url: string
|
|
|
|
|
status: number
|
|
|
|
|
statusText: string
|
|
|
|
|
headers:
|
|
|
|
|
type: array
|
2021-08-30 18:58:44 +02:00
|
|
|
items: NameValue
|
2020-10-22 08:25:57 +02:00
|
|
|
timing: ResourceTiming
|
2022-06-08 23:34:19 +02:00
|
|
|
fromServiceWorker: boolean
|
2020-10-22 08:25:57 +02:00
|
|
|
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
commands:
|
|
|
|
|
|
|
|
|
|
body:
|
|
|
|
|
returns:
|
|
|
|
|
binary: binary
|
|
|
|
|
|
2021-06-17 22:04:55 +02:00
|
|
|
securityDetails:
|
|
|
|
|
returns:
|
|
|
|
|
value: SecurityDetails?
|
|
|
|
|
|
|
|
|
|
serverAddr:
|
|
|
|
|
returns:
|
|
|
|
|
value: RemoteAddr?
|
|
|
|
|
|
2021-09-02 03:28:20 +02:00
|
|
|
rawResponseHeaders:
|
|
|
|
|
returns:
|
|
|
|
|
headers:
|
|
|
|
|
type: array
|
|
|
|
|
items: NameValue
|
|
|
|
|
|
2021-09-02 19:39:57 +02:00
|
|
|
sizes:
|
|
|
|
|
returns:
|
|
|
|
|
sizes: RequestSizes
|
|
|
|
|
|
2021-06-17 22:04:55 +02:00
|
|
|
|
|
|
|
|
SecurityDetails:
|
|
|
|
|
type: object
|
|
|
|
|
properties:
|
|
|
|
|
issuer: string?
|
|
|
|
|
protocol: string?
|
|
|
|
|
subjectName: string?
|
|
|
|
|
validFrom: number?
|
|
|
|
|
validTo: number?
|
|
|
|
|
|
2021-08-27 22:53:57 +02:00
|
|
|
RequestSizes:
|
|
|
|
|
type: object
|
|
|
|
|
properties:
|
|
|
|
|
requestBodySize: number
|
|
|
|
|
requestHeadersSize: number
|
|
|
|
|
responseBodySize: number
|
|
|
|
|
responseHeadersSize: number
|
|
|
|
|
|
2021-06-17 22:04:55 +02:00
|
|
|
|
|
|
|
|
RemoteAddr:
|
|
|
|
|
type: object
|
|
|
|
|
properties:
|
|
|
|
|
ipAddress: string
|
|
|
|
|
port: number
|
|
|
|
|
|
2020-07-23 04:38:19 +02:00
|
|
|
|
2020-10-27 06:20:43 +01:00
|
|
|
WebSocket:
|
|
|
|
|
type: interface
|
|
|
|
|
|
2021-07-01 02:56:48 +02:00
|
|
|
extends: EventTarget
|
|
|
|
|
|
2020-10-27 06:20:43 +01:00
|
|
|
initializer:
|
|
|
|
|
url: string
|
|
|
|
|
|
|
|
|
|
events:
|
|
|
|
|
open:
|
|
|
|
|
|
|
|
|
|
frameSent:
|
|
|
|
|
parameters:
|
|
|
|
|
opcode: number
|
|
|
|
|
data: string
|
|
|
|
|
|
|
|
|
|
frameReceived:
|
|
|
|
|
parameters:
|
|
|
|
|
opcode: number
|
|
|
|
|
data: string
|
|
|
|
|
|
2020-11-19 21:09:42 +01:00
|
|
|
socketError:
|
2020-10-27 06:20:43 +01:00
|
|
|
parameters:
|
|
|
|
|
error: string
|
|
|
|
|
|
|
|
|
|
close:
|
|
|
|
|
|
|
|
|
|
|
2020-07-23 04:38:19 +02:00
|
|
|
ConsoleMessage:
|
|
|
|
|
type: interface
|
|
|
|
|
|
|
|
|
|
initializer:
|
|
|
|
|
type: string
|
|
|
|
|
text: string
|
|
|
|
|
args:
|
|
|
|
|
type: array
|
|
|
|
|
items: JSHandle
|
|
|
|
|
location:
|
|
|
|
|
type: object
|
|
|
|
|
properties:
|
2020-08-06 07:25:56 +02:00
|
|
|
url: string
|
|
|
|
|
lineNumber: number
|
|
|
|
|
columnNumber: number
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BindingCall:
|
|
|
|
|
type: interface
|
|
|
|
|
|
|
|
|
|
initializer:
|
|
|
|
|
frame: Frame
|
|
|
|
|
name: string
|
|
|
|
|
args:
|
2020-10-02 07:47:31 +02:00
|
|
|
type: array?
|
2020-07-23 04:38:19 +02:00
|
|
|
items: SerializedValue
|
2020-10-02 07:47:31 +02:00
|
|
|
handle: JSHandle?
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
commands:
|
|
|
|
|
|
|
|
|
|
reject:
|
|
|
|
|
parameters:
|
|
|
|
|
error: SerializedError
|
|
|
|
|
|
|
|
|
|
resolve:
|
|
|
|
|
parameters:
|
|
|
|
|
result: SerializedArgument
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Dialog:
|
|
|
|
|
type: interface
|
|
|
|
|
|
|
|
|
|
initializer:
|
|
|
|
|
type: string
|
|
|
|
|
message: string
|
|
|
|
|
defaultValue: string
|
|
|
|
|
|
|
|
|
|
commands:
|
|
|
|
|
|
|
|
|
|
accept:
|
|
|
|
|
parameters:
|
|
|
|
|
promptText: string?
|
|
|
|
|
|
|
|
|
|
dismiss:
|
|
|
|
|
|
|
|
|
|
|
2022-01-22 20:25:13 +01:00
|
|
|
Tracing:
|
|
|
|
|
type: interface
|
|
|
|
|
|
|
|
|
|
commands:
|
|
|
|
|
|
|
|
|
|
tracingStart:
|
|
|
|
|
parameters:
|
|
|
|
|
name: string?
|
|
|
|
|
snapshots: boolean?
|
|
|
|
|
screenshots: boolean?
|
|
|
|
|
sources: boolean?
|
|
|
|
|
|
|
|
|
|
tracingStartChunk:
|
|
|
|
|
parameters:
|
|
|
|
|
title: string?
|
|
|
|
|
|
|
|
|
|
tracingStopChunk:
|
|
|
|
|
parameters:
|
|
|
|
|
mode:
|
|
|
|
|
type: enum
|
|
|
|
|
literals:
|
|
|
|
|
- doNotSave
|
|
|
|
|
- compressTrace
|
|
|
|
|
- compressTraceAndSources
|
|
|
|
|
returns:
|
|
|
|
|
# The artifact may be missing if the browser closes while tracing is beeing stopped.
|
|
|
|
|
artifact: Artifact?
|
|
|
|
|
sourceEntries:
|
|
|
|
|
type: array?
|
|
|
|
|
items: NameValue
|
|
|
|
|
|
|
|
|
|
tracingStop:
|
|
|
|
|
|
2020-07-23 04:38:19 +02:00
|
|
|
|
2021-03-31 19:38:05 +02:00
|
|
|
Artifact:
|
2020-07-23 04:38:19 +02:00
|
|
|
type: interface
|
|
|
|
|
|
|
|
|
|
initializer:
|
2021-03-31 19:38:05 +02:00
|
|
|
absolutePath: string
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
commands:
|
|
|
|
|
|
2021-03-31 19:38:05 +02:00
|
|
|
pathAfterFinished:
|
2020-07-23 04:38:19 +02:00
|
|
|
returns:
|
|
|
|
|
value: string?
|
|
|
|
|
|
2020-08-26 21:46:30 +02:00
|
|
|
# Blocks path/failure/delete/context.close until saved to the local |path|.
|
2020-07-23 04:38:19 +02:00
|
|
|
saveAs:
|
|
|
|
|
parameters:
|
|
|
|
|
path: string
|
|
|
|
|
|
2020-08-26 21:46:30 +02:00
|
|
|
# Blocks path/failure/delete/context.close until the stream is closed.
|
|
|
|
|
saveAsStream:
|
|
|
|
|
returns:
|
|
|
|
|
stream: Stream
|
|
|
|
|
|
2020-07-23 04:38:19 +02:00
|
|
|
failure:
|
|
|
|
|
returns:
|
|
|
|
|
error: string?
|
|
|
|
|
|
|
|
|
|
stream:
|
|
|
|
|
returns:
|
|
|
|
|
stream: Stream?
|
|
|
|
|
|
2021-06-12 22:23:22 +02:00
|
|
|
cancel:
|
|
|
|
|
|
2020-07-23 04:38:19 +02:00
|
|
|
delete:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Stream:
|
|
|
|
|
type: interface
|
|
|
|
|
|
|
|
|
|
commands:
|
|
|
|
|
|
|
|
|
|
read:
|
|
|
|
|
parameters:
|
|
|
|
|
size: number?
|
|
|
|
|
returns:
|
|
|
|
|
binary: binary
|
|
|
|
|
|
2020-08-26 21:46:30 +02:00
|
|
|
close:
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
|
2022-03-18 17:00:52 +01:00
|
|
|
WritableStream:
|
|
|
|
|
type: interface
|
|
|
|
|
|
|
|
|
|
commands:
|
|
|
|
|
|
|
|
|
|
write:
|
|
|
|
|
parameters:
|
|
|
|
|
binary: binary
|
|
|
|
|
|
|
|
|
|
close:
|
|
|
|
|
|
|
|
|
|
|
2020-07-23 04:38:19 +02:00
|
|
|
CDPSession:
|
|
|
|
|
type: interface
|
|
|
|
|
|
|
|
|
|
commands:
|
|
|
|
|
|
|
|
|
|
send:
|
|
|
|
|
parameters:
|
|
|
|
|
method: string
|
2020-08-10 20:20:32 +02:00
|
|
|
params: json?
|
2020-07-23 04:38:19 +02:00
|
|
|
returns:
|
2020-08-10 20:20:32 +02:00
|
|
|
result: json
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
detach:
|
|
|
|
|
|
|
|
|
|
events:
|
|
|
|
|
|
|
|
|
|
event:
|
|
|
|
|
parameters:
|
|
|
|
|
method: string
|
2020-08-10 20:20:32 +02:00
|
|
|
params: json?
|
2020-07-23 04:38:19 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
Electron:
|
|
|
|
|
type: interface
|
|
|
|
|
|
|
|
|
|
commands:
|
|
|
|
|
|
|
|
|
|
launch:
|
|
|
|
|
parameters:
|
2021-02-01 20:43:26 +01:00
|
|
|
executablePath: string?
|
2020-07-23 04:38:19 +02:00
|
|
|
args:
|
|
|
|
|
type: array?
|
|
|
|
|
items: string
|
|
|
|
|
cwd: string?
|
|
|
|
|
env:
|
|
|
|
|
type: array?
|
2020-11-13 23:24:53 +01:00
|
|
|
items: NameValue
|
2020-07-23 04:38:19 +02:00
|
|
|
timeout: number?
|
2021-05-19 15:56:29 +02:00
|
|
|
acceptDownloads: boolean?
|
|
|
|
|
bypassCSP: boolean?
|
|
|
|
|
colorScheme:
|
|
|
|
|
type: enum?
|
|
|
|
|
literals:
|
|
|
|
|
- dark
|
|
|
|
|
- light
|
|
|
|
|
- no-preference
|
|
|
|
|
extraHTTPHeaders:
|
|
|
|
|
type: array?
|
|
|
|
|
items: NameValue
|
|
|
|
|
geolocation:
|
|
|
|
|
type: object?
|
|
|
|
|
properties:
|
|
|
|
|
longitude: number
|
|
|
|
|
latitude: number
|
|
|
|
|
accuracy: number?
|
|
|
|
|
httpCredentials:
|
|
|
|
|
type: object?
|
|
|
|
|
properties:
|
|
|
|
|
username: string
|
|
|
|
|
password: string
|
|
|
|
|
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:
|
|
|
|
|
type: object?
|
|
|
|
|
properties:
|
|
|
|
|
dir: string
|
|
|
|
|
size:
|
|
|
|
|
type: object?
|
|
|
|
|
properties:
|
|
|
|
|
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-23 04:38:19 +02:00
|
|
|
returns:
|
|
|
|
|
electronApplication: ElectronApplication
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ElectronApplication:
|
|
|
|
|
type: interface
|
|
|
|
|
|
2021-07-01 02:56:48 +02:00
|
|
|
extends: EventTarget
|
|
|
|
|
|
2021-05-03 07:45:06 +02:00
|
|
|
initializer:
|
|
|
|
|
context: BrowserContext
|
|
|
|
|
|
2020-07-23 04:38:19 +02:00
|
|
|
commands:
|
|
|
|
|
|
2021-05-03 07:45:06 +02:00
|
|
|
browserWindow:
|
|
|
|
|
parameters:
|
|
|
|
|
page: Page
|
|
|
|
|
returns:
|
|
|
|
|
handle: JSHandle
|
|
|
|
|
|
2020-07-23 04:38:19 +02:00
|
|
|
evaluateExpression:
|
|
|
|
|
parameters:
|
|
|
|
|
expression: string
|
2021-02-03 22:49:25 +01:00
|
|
|
isFunction: boolean?
|
2020-07-23 04:38:19 +02:00
|
|
|
arg: SerializedArgument
|
|
|
|
|
returns:
|
|
|
|
|
value: SerializedValue
|
|
|
|
|
|
|
|
|
|
evaluateExpressionHandle:
|
|
|
|
|
parameters:
|
|
|
|
|
expression: string
|
2021-02-03 22:49:25 +01:00
|
|
|
isFunction: boolean?
|
2020-07-23 04:38:19 +02:00
|
|
|
arg: SerializedArgument
|
|
|
|
|
returns:
|
|
|
|
|
handle: JSHandle
|
|
|
|
|
|
|
|
|
|
close:
|
|
|
|
|
|
|
|
|
|
events:
|
|
|
|
|
close:
|
|
|
|
|
|
2020-12-10 00:06:57 +01:00
|
|
|
|
|
|
|
|
Android:
|
|
|
|
|
type: interface
|
|
|
|
|
|
|
|
|
|
commands:
|
|
|
|
|
|
|
|
|
|
devices:
|
2022-03-04 20:27:25 +01:00
|
|
|
parameters:
|
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?
|
2020-12-10 00:06:57 +01:00
|
|
|
returns:
|
|
|
|
|
devices:
|
|
|
|
|
type: array
|
|
|
|
|
items: AndroidDevice
|
|
|
|
|
|
2020-12-10 02:15:24 +01:00
|
|
|
setDefaultTimeoutNoReply:
|
|
|
|
|
parameters:
|
|
|
|
|
timeout: number
|
2020-12-10 00:06:57 +01:00
|
|
|
|
2020-12-12 18:36:38 +01:00
|
|
|
AndroidSocket:
|
|
|
|
|
type: interface
|
|
|
|
|
|
|
|
|
|
commands:
|
|
|
|
|
write:
|
|
|
|
|
parameters:
|
|
|
|
|
data: binary
|
|
|
|
|
|
|
|
|
|
close:
|
|
|
|
|
|
|
|
|
|
events:
|
|
|
|
|
data:
|
|
|
|
|
parameters:
|
|
|
|
|
data: binary
|
2020-12-16 05:15:25 +01:00
|
|
|
close:
|
2020-12-10 00:06:57 +01:00
|
|
|
|
|
|
|
|
AndroidDevice:
|
|
|
|
|
type: interface
|
|
|
|
|
|
2021-07-01 02:56:48 +02:00
|
|
|
extends: EventTarget
|
|
|
|
|
|
2020-12-10 00:06:57 +01:00
|
|
|
initializer:
|
|
|
|
|
model: string
|
|
|
|
|
serial: string
|
|
|
|
|
|
|
|
|
|
commands:
|
|
|
|
|
wait:
|
|
|
|
|
parameters:
|
|
|
|
|
selector: AndroidSelector
|
|
|
|
|
state:
|
|
|
|
|
type: enum?
|
|
|
|
|
literals:
|
|
|
|
|
- gone
|
|
|
|
|
timeout: number?
|
|
|
|
|
|
|
|
|
|
fill:
|
|
|
|
|
parameters:
|
|
|
|
|
selector: AndroidSelector
|
|
|
|
|
text: string
|
|
|
|
|
timeout: number?
|
|
|
|
|
|
|
|
|
|
tap:
|
|
|
|
|
parameters:
|
|
|
|
|
selector: AndroidSelector
|
|
|
|
|
duration: number?
|
|
|
|
|
timeout: number?
|
|
|
|
|
|
|
|
|
|
drag:
|
|
|
|
|
parameters:
|
|
|
|
|
selector: AndroidSelector
|
|
|
|
|
dest: Point
|
|
|
|
|
speed: number?
|
|
|
|
|
timeout: number?
|
2020-12-12 18:36:38 +01:00
|
|
|
|
2020-12-10 00:06:57 +01:00
|
|
|
fling:
|
|
|
|
|
parameters:
|
|
|
|
|
selector: AndroidSelector
|
|
|
|
|
direction:
|
|
|
|
|
type: enum
|
|
|
|
|
literals:
|
|
|
|
|
- up
|
|
|
|
|
- down
|
|
|
|
|
- left
|
|
|
|
|
- right
|
|
|
|
|
speed: number?
|
|
|
|
|
timeout: number?
|
2020-12-12 18:36:38 +01:00
|
|
|
|
2020-12-10 00:06:57 +01:00
|
|
|
longTap:
|
|
|
|
|
parameters:
|
|
|
|
|
selector: AndroidSelector
|
|
|
|
|
timeout: number?
|
2020-12-12 18:36:38 +01:00
|
|
|
|
2020-12-10 00:06:57 +01:00
|
|
|
pinchClose:
|
|
|
|
|
parameters:
|
|
|
|
|
selector: AndroidSelector
|
|
|
|
|
percent: number
|
|
|
|
|
speed: number?
|
|
|
|
|
timeout: number?
|
|
|
|
|
|
|
|
|
|
pinchOpen:
|
|
|
|
|
parameters:
|
|
|
|
|
selector: AndroidSelector
|
|
|
|
|
percent: number
|
|
|
|
|
speed: number?
|
|
|
|
|
timeout: number?
|
|
|
|
|
|
|
|
|
|
scroll:
|
|
|
|
|
parameters:
|
|
|
|
|
selector: AndroidSelector
|
|
|
|
|
direction:
|
|
|
|
|
type: enum
|
|
|
|
|
literals:
|
|
|
|
|
- up
|
|
|
|
|
- down
|
|
|
|
|
- left
|
|
|
|
|
- right
|
|
|
|
|
percent: number
|
|
|
|
|
speed: number?
|
|
|
|
|
timeout: number?
|
|
|
|
|
|
|
|
|
|
swipe:
|
|
|
|
|
parameters:
|
|
|
|
|
selector: AndroidSelector
|
|
|
|
|
direction:
|
|
|
|
|
type: enum
|
|
|
|
|
literals:
|
|
|
|
|
- up
|
|
|
|
|
- down
|
|
|
|
|
- left
|
|
|
|
|
- right
|
|
|
|
|
percent: number
|
|
|
|
|
speed: number?
|
|
|
|
|
timeout: number?
|
|
|
|
|
|
|
|
|
|
info:
|
|
|
|
|
parameters:
|
|
|
|
|
selector: AndroidSelector
|
|
|
|
|
returns:
|
|
|
|
|
info: AndroidElementInfo
|
|
|
|
|
|
2020-12-14 08:20:13 +01:00
|
|
|
screenshot:
|
|
|
|
|
returns:
|
|
|
|
|
binary: binary
|
|
|
|
|
|
2020-12-10 00:06:57 +01:00
|
|
|
inputType:
|
|
|
|
|
parameters:
|
|
|
|
|
text: string
|
|
|
|
|
|
|
|
|
|
inputPress:
|
|
|
|
|
parameters:
|
|
|
|
|
key: string
|
|
|
|
|
|
|
|
|
|
inputTap:
|
|
|
|
|
parameters:
|
|
|
|
|
point: Point
|
|
|
|
|
|
|
|
|
|
inputSwipe:
|
|
|
|
|
parameters:
|
|
|
|
|
segments:
|
|
|
|
|
type: array
|
|
|
|
|
items: Point
|
|
|
|
|
steps: number
|
|
|
|
|
|
|
|
|
|
inputDrag:
|
|
|
|
|
parameters:
|
|
|
|
|
from: Point
|
|
|
|
|
to: Point
|
|
|
|
|
steps: number
|
|
|
|
|
|
|
|
|
|
launchBrowser:
|
|
|
|
|
parameters:
|
2022-03-01 18:11:38 +01:00
|
|
|
$mixin: ContextOptions
|
2020-12-18 03:28:49 +01:00
|
|
|
pkg: string?
|
2020-12-10 00:06:57 +01:00
|
|
|
proxy:
|
|
|
|
|
type: object?
|
|
|
|
|
properties:
|
|
|
|
|
server: string
|
|
|
|
|
bypass: string?
|
|
|
|
|
username: string?
|
|
|
|
|
password: string?
|
|
|
|
|
|
|
|
|
|
returns:
|
|
|
|
|
context: BrowserContext
|
|
|
|
|
|
2020-12-12 18:36:38 +01:00
|
|
|
open:
|
|
|
|
|
parameters:
|
|
|
|
|
command: string
|
|
|
|
|
returns:
|
|
|
|
|
socket: AndroidSocket
|
|
|
|
|
|
2020-12-10 00:06:57 +01:00
|
|
|
shell:
|
|
|
|
|
parameters:
|
|
|
|
|
command: string
|
|
|
|
|
returns:
|
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
|
|
|
installApk:
|
|
|
|
|
parameters:
|
|
|
|
|
file: binary
|
|
|
|
|
args:
|
|
|
|
|
type: array?
|
|
|
|
|
items: string
|
|
|
|
|
|
2020-12-14 07:00:37 +01:00
|
|
|
push:
|
|
|
|
|
parameters:
|
|
|
|
|
file: binary
|
|
|
|
|
path: string
|
|
|
|
|
mode: number?
|
|
|
|
|
|
2020-12-10 02:15:24 +01:00
|
|
|
setDefaultTimeoutNoReply:
|
|
|
|
|
parameters:
|
|
|
|
|
timeout: number
|
|
|
|
|
|
|
|
|
|
connectToWebView:
|
|
|
|
|
parameters:
|
2022-04-08 20:52:16 +02:00
|
|
|
socketName: string
|
2020-12-10 02:15:24 +01:00
|
|
|
returns:
|
|
|
|
|
context: BrowserContext
|
|
|
|
|
|
2020-12-10 00:06:57 +01:00
|
|
|
close:
|
2020-12-10 02:15:24 +01:00
|
|
|
|
|
|
|
|
events:
|
|
|
|
|
webViewAdded:
|
|
|
|
|
parameters:
|
|
|
|
|
webView: AndroidWebView
|
|
|
|
|
|
|
|
|
|
webViewRemoved:
|
|
|
|
|
parameters:
|
2022-04-08 20:52:16 +02:00
|
|
|
socketName: string
|
2020-12-10 02:15:24 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
AndroidWebView:
|
|
|
|
|
type: object
|
|
|
|
|
properties:
|
|
|
|
|
pid: number
|
|
|
|
|
pkg: string
|
2022-04-08 20:52:16 +02:00
|
|
|
socketName: string
|
2020-12-10 02:15:24 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
AndroidSelector:
|
|
|
|
|
type: object
|
|
|
|
|
properties:
|
|
|
|
|
checkable: boolean?
|
|
|
|
|
checked: boolean?
|
|
|
|
|
clazz: string?
|
|
|
|
|
clickable: boolean?
|
|
|
|
|
depth: number?
|
|
|
|
|
desc: string?
|
|
|
|
|
enabled: boolean?
|
|
|
|
|
focusable: boolean?
|
|
|
|
|
focused: boolean?
|
|
|
|
|
hasChild:
|
|
|
|
|
type: object?
|
|
|
|
|
properties:
|
|
|
|
|
selector: AndroidSelector
|
|
|
|
|
hasDescendant:
|
|
|
|
|
type: object?
|
|
|
|
|
properties:
|
|
|
|
|
selector: AndroidSelector
|
|
|
|
|
maxDepth: number?
|
|
|
|
|
longClickable: boolean?
|
|
|
|
|
pkg: string?
|
|
|
|
|
res: string?
|
|
|
|
|
scrollable: boolean?
|
|
|
|
|
selected: boolean?
|
|
|
|
|
text: string?
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
AndroidElementInfo:
|
|
|
|
|
type: object
|
|
|
|
|
properties:
|
2020-12-13 17:14:32 +01:00
|
|
|
children:
|
|
|
|
|
type: array?
|
|
|
|
|
items: 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-08-31 21:51:13 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
JsonPipe:
|
|
|
|
|
type: interface
|
|
|
|
|
|
|
|
|
|
commands:
|
|
|
|
|
send:
|
|
|
|
|
parameters:
|
|
|
|
|
message: json
|
|
|
|
|
|
|
|
|
|
close:
|
|
|
|
|
|
|
|
|
|
events:
|
|
|
|
|
|
|
|
|
|
message:
|
|
|
|
|
parameters:
|
|
|
|
|
message: json
|
|
|
|
|
|
|
|
|
|
closed:
|
2021-12-15 20:12:13 +01:00
|
|
|
parameters:
|
2021-08-31 21:51:13 +02:00
|
|
|
error: SerializedError?
|