Home Reference Source

Function

Static Public Summary
public

CRIExtra(options: *): *

public

Adapts the client object returned by the default module.export of the chrome-remote-interface to appear and behave like the puppeteer classes

since chrome-remote-interface-extra
public

ensureCookie(cookie: CDPCookie | Cookie | string, url: string, setURLIfMissing: boolean): CDPCookie

Static Public

public CRIExtra(options: *): * source

Params:

NameTypeAttributeDescription
options *

Return:

*

public adaptChromeRemoteInterfaceClient(cdpClient: Chrome | CRIConnection | CDPSession | Object): Chrome | CRIConnection | CDPSession since chrome-remote-interface-extra source

import {adaptChromeRemoteInterfaceClient} from 'chrome-remote-interface-extra/lib/connection/adaptor.js'

Adapts the client object returned by the default module.export of the chrome-remote-interface to appear and behave like the puppeteer classes

Params:

NameTypeAttributeDescription
cdpClient Chrome | CRIConnection | CDPSession | Object

Return:

Chrome | CRIConnection | CDPSession

public ensureCookie(cookie: CDPCookie | Cookie | string, url: string, setURLIfMissing: boolean): CDPCookie source

Params:

NameTypeAttributeDescription
cookie CDPCookie | Cookie | string
url string
setURLIfMissing boolean

Return:

CDPCookie