Typedef
| Static Public Summary | ||
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
ConnectionTypes: Chrome | CRIConnection | CDPSession | Object |
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
Static Public
public BrowserInitOptions: Object source
Properties:
| Name | Type | Attribute | Description |
| process | Object |
|
|
| contextIds | Array<string> |
|
|
| ignoreHTTPSErrors | boolean |
|
|
| defaultViewport | Object |
|
|
| closeCallback | function(): Promise |
|
|
| additionalDomains | EnabledExtras |
|
|
| browserWSEndpoint | string |
|
public CDPAnimation: Object source
Properties:
| Name | Type | Attribute | Description |
| id | string |
|
|
| name | string |
|
|
| pausedState | boolean |
|
|
| playState | string |
|
|
| playbackRate | number |
|
|
| startTime | number |
|
|
| currentTime | number |
|
|
| type | string | Animation type of |
|
| source | CDPAnimationEffect |
|
|
| cssId | string |
|
A unique ID for |
public CDPAnimationEffect: Object source
Properties:
| Name | Type | Attribute | Description |
| delay | number |
|
|
| endDelay | number |
|
|
| iterationStart | number |
|
|
| iterations | number |
|
|
| duration | number |
|
|
| direction | string |
|
|
| fill | string |
|
|
| backendNodeId | string |
|
|
| keyframesRule | CDPKeyframesRule |
|
|
| easing | string |
|
public CDPCookie: Object source
Properties:
| Name | Type | Attribute | Description |
| name | string |
|
|
| value | string |
|
|
| domain | string |
|
|
| path | string |
|
|
| expires | number |
|
|
| size | number |
|
|
| httpOnly | boolean |
|
|
| secure | boolean |
|
|
| session | boolean |
|
|
| sameSite | string |
|
public CDPFrameResource: Object source
Properties:
| Name | Type | Attribute | Description |
| url | string | Resource URL. |
|
| type | ResourceType | Type of this resource as it was perceived by the rendering engine. Values: Document, Stylesheet, Image, Media, Font, Script, TextTrack, XHR, Fetch, EventSource, WebSocket, Manifest, SignedExchange, Ping, CSPViolationReport, Other |
|
| mimeType | string | Resource mimeType as determined by the browser. |
|
| lastModified | number |
|
last-modified timestamp as reported by server. |
| contentSize | number |
|
Resource content size. |
| failed | boolean |
|
True if the resource failed to load. |
| canceled | boolean |
|
True if the resource was canceled during loading. |
public CDPFrameResourceTree: Object source
Properties:
| Name | Type | Attribute | Description |
| frame | Object | Frame information for this tree item. |
|
| childFrames | Array<CDPFrameResourceTree> |
|
Child frames. |
| resources | Array<CDPFrameResource> | Information about frame resources. |
public CDPKeyframesRule: Object source
Properties:
| Name | Type | Attribute | Description |
| name | string |
|
CSS keyframed animation's name. |
| keyframes | Array<CDPKeyframeStyle> | List of animation keyframes. |
public CDPLogEntry: Object source
Properties:
| Name | Type | Attribute | Description |
| source | string | Log entry source. Values: xml, javascript, network, storage, appcache, rendering, security, deprecation, worker, violation, intervention, recommendation, other |
|
| level | string | Log entry severity. Values: verbose, info, warning, error |
|
| text | string | Logged text. |
|
| timestamp | number | Timestamp when this entry was added. |
|
| url | string |
|
URL of the resource if known. |
| lineNumber | number |
|
Line number in the resource. |
| stackTrace | Object |
|
JavaScript stack trace. |
| networkRequestId | string |
|
Identifier of the network request associated with this entry. |
| workerId | string |
|
Identifier of the worker associated with this entry. |
| args | Array<Object> |
|
Call arguments. |
public CDPNavigationEntry: Object source
Properties:
| Name | Type | Attribute | Description |
| id | number | Unique id of the navigation history entry. |
|
| url | string | URL of the navigation history entry. |
|
| userTypedURL | string | URL that the user typed in the url bar. |
|
| title | string | Title of the navigation history entry. |
|
| transitionType | string | Transition type - values: ink, typed, address_bar, auto_bookmark, auto_subframe, manual_subframe, generated, auto_toplevel, form_submit, reload, keyword, keyword_generated, other |
public CDPSecurityDetails: Object source
Properties:
| Name | Type | Attribute | Description |
| protocol | string | Protocol name (e.g. "TLS 1.2" or "QUIC"). |
|
| keyExchange | string | Key Exchange used by the connection, or the empty string if not applicable. |
|
| keyExchangeGroup | string |
|
(EC)DH group used by the connection, if applicable. |
| cipher | string | Cipher name. |
|
| mac | string |
|
TLS MAC. Note that AEAD ciphers do not have separate MACs. |
| certificateId | string | Certificate ID value. |
|
| subjectName | string | Certificate subject name. |
|
| sanList | Array<string> | Subject Alternative Name (SAN) DNS names and IP addresses. |
|
| issuer | string | Name of the issuing CA. |
|
| validFrom | number | Certificate valid from date. |
|
| validTo | number | Certificate valid to (expiration) date |
|
| signedCertificateTimestampList | Array<CDPSignedCertificateTimestamp> | List of signed certificate timestamps (SCTs). |
|
| certificateTransparencyCompliance | string | Whether the request complied with Certificate Transparency policy. Values: unknown, not-compliant, compliant |
public CDPServiceWorkerVersion: Object source
Properties:
| Name | Type | Attribute | Description |
| versionId | string | ||
| registrationId | string | ||
| scriptURL | string | ||
| runningStatus | string | values: stopped, starting, running, stopping |
|
| status | string | values: new, installing, installed, activating, activated, redundant |
|
| scriptLastModified | number |
|
The Last-Modified header value of the main script. |
| scriptResponseTime | number |
|
The time at which the response headers of the main script were received from the server. For cached script it is the last time the cache entry was validated. |
| controlledClients | Array<string> |
|
|
| targetId | string |
|
public CDPSignedCertificateTimestamp: Object source
Properties:
| Name | Type | Attribute | Description |
| status | string | Validation status. |
|
| origin | string | Origin. |
|
| logDescription | string | Log name / description. |
|
| logId | string | Log ID. |
|
| timestamp | string | Issuance date. |
|
| hashAlgorithm | string | Hash algorithm. |
|
| signatureAlgorithm | string | Signature algorithm. |
|
| signatureData | string | Signature data. |
public CRIOptions: Object source
Properties:
| Name | Type | Attribute | Description |
| host | string |
|
HTTP frontend host. Defaults to localhost |
| port | number |
|
HTTP frontend port. Defaults to 9222 |
| secure | boolean |
|
HTTPS/WSS frontend. Defaults to false |
| useHostName | boolean |
|
do not perform a DNS lookup of the host. Defaults to false |
| target | function | object | string |
|
determines which target this client should attach to. The behavior changes according to the type
Defaults to a function which returns the first available target according to the implementation (note that at most one connection can be established to the same target) |
| protocol | Object |
|
Chrome Debugging Protocol descriptor object. Defaults to use the protocol chosen according to the local option |
| local | boolean |
|
boolean indicating whether the protocol must be fetched remotely or if the local version must be used. It has no effect if the protocol option is set. Defaults to false |
public ConnectionTypes: Chrome | CRIConnection | CDPSession | Object source
public ConsoleMessageArgsInit: Object source
Properties:
| Name | Type | Attribute | Description |
| context | ExecutionContext |
|
|
| jsHandleFactory | function(arg: Object): JSHandle |
|
public CookieParam: Object source
Properties:
| Name | Type | Attribute | Description |
| name | string |
|
|
| value | string |
|
|
| url | string |
|
|
| domain | string |
|
|
| path | string |
|
|
| expires | number |
|
|
| httpOnly | boolean |
|
|
| secure | boolean |
|
|
| sameSite | string |
|
public Device: Object source
Properties:
| Name | Type | Attribute | Description |
| name | string |
|
|
| userAgent | string |
|
|
| viewPort | DeviceDescriptorViewPort |
|
public EnabledExtras: Object source
Properties:
| Name | Type | Attribute | Description |
| animation | boolean |
|
|
| console | boolean |
|
|
| coverage | boolean |
|
|
| database | boolean |
|
|
| log | boolean |
|
|
| performance | boolean |
|
|
| security | boolean |
|
|
| serviceWorkers | boolean |
|
|
| workers | boolean |
|
public GetEncodedResponseArgs: Object source
Properties:
| Name | Type | Attribute | Description |
| requestId | string | Identifier of the network request to get content for |
|
| encoding | string | The encoding to use. Allowed values: webp, jpeg, png |
|
| quality | number |
|
The quality of the encoding (0-1). (defaults to 1) |
| sizeOnly | boolean |
|
Whether to only return the size information (defaults to false) |
public Metrics: Object source
Properties:
| Name | Type | Attribute | Description |
| Timestamp | number | ||
| Documents | number | ||
| Frames | number | ||
| JSEventListeners | number | ||
| Nodes | number | ||
| LayoutCount | number | ||
| RecalcStyleCount | number | ||
| LayoutDuration | number | ||
| RecalcStyleDuration | number | ||
| ScriptDuration | number | ||
| TaskDuration | number | ||
| JSHeapUsedSize | number | ||
| JSHeapTotalSize | number |
public ModifyCookieParam: Object source
Properties:
| Name | Type | Attribute | Description |
| name | string |
|
|
| value | string |
|
|
| url | string |
|
|
| domain | string |
|
|
| path | string |
|
|
| expires | number |
|
|
| httpOnly | boolean |
|
|
| secure | boolean |
|
|
| sameSite | string |
|
public NetIdleOptions: Object source
Properties:
| Name | Type | Attribute | Description |
| globalWait | number |
|
Maximum amount of time, in milliseconds, to wait for network idle to occur |
| numInflight | number |
|
The number of inflight requests (requests with no response) that should exist before starting the inflightIdle timer |
| inflightIdle | number |
|
Amount of time, in milliseconds, that should elapse when there are only numInflight requests for network idle to be determined |
public PDFOptions: Object source
Properties:
| Name | Type | Attribute | Description |
| scale | number | ||
| displayHeaderFooter | boolean | ||
| headerTemplate | string | ||
| footerTemplate | string | ||
| printBackground | boolean | ||
| landscape | boolean | ||
| pageRanges | string | ||
| format | string | ||
| width | string | number | ||
| height | string | number | ||
| preferCSSPageSize | boolean |
|
|
| margin | {top?: string|number, bottom?: string|number, left?: string|number, right?: string|number} |
|
|
| path | string |
|
public PageInitOptions: Object source
Properties:
| Name | Type | Attribute | Description |
| ignoreHTTPSErrors | boolean |
|
|
| target | Target |
|
|
| defaultViewPort | Object |
|
|
| screenshotTaskQueue | TaskQueue |
|
|
| additionalDomains | EnabledExtras |
|
public SerializedAXNode: Object source
Properties:
| Name | Type | Attribute | Description |
| role | string | ||
| name | string | ||
| value | string | 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 | boolean | "mixed" | ||
| pressed | boolean | "mixed" | ||
| level | number | ||
| valuemin | number | ||
| valuemax | number | ||
| autocomplete | string | ||
| haspopup | string | ||
| invalid | string | ||
| orientation | string | ||
| children | Array<SerializedAXNode> |
public ServiceWorkerInfo: Object source
Properties:
| Name | Type | Attribute | Description |
| versionId | string | ||
| registrationId | string | ||
| scopeURL | string | ||
| isDeleted | boolean | ||
| runningStatus | string | stopped, starting, running, stopping |
|
| status | string | new, installing, installed, activating, activated, redundant |
|
| scriptLastModified | number |
|
The Last-Modified header value of the main script. |
| scriptResponseTime | number |
|
The time at which the response headers of the main script were received from the server. For cached script it is the last time the cache entry was validated. |
| controlledClients | Array<string> |
|
|
| targetId | string |
|
public TargetInit: Object source
Properties:
| Name | Type | Attribute | Description |
| targetInfo | Object | ||
| browserContext | BrowserContext |
|
|
| sessionFactory | function(): Promise<CDPSession> |
|
|
| pageOpts | PageInitOptions |
|
|
| client | Chrome | CDPSession | CRIConnection |
|
public WindowBounds: Object source
Properties:
| Name | Type | Attribute | Description |
| left | number |
|
The offset from the left edge of the screen to the window in pixels. |
| top | number |
|
The offset from the top edge of the screen to the window in pixels. |
| width | number |
|
The window width in pixels. |
| height | number |
|
The window height in pixels. |
| windowState | string |
|
The window state. Default to normal. Values: normal, minimized, maximized, fullscreen |
