Home Reference Source
public class | source

Tracing

Constructor Summary

Public Constructor
public

constructor(client: Chrome | CRIConnection | CDPSession | Object)

Member Summary

Private Members
private
private
private

Method Summary

Public Methods
public

async start(options: {path: string, screenshots?: boolean, categories?: Array<string>})

public

async stop(): Promise<Buffer>

Private Methods
private

async _readStream(handle: string, path: string): *

Public Constructors

public constructor(client: Chrome | CRIConnection | CDPSession | Object) source

Params:

NameTypeAttributeDescription
client Chrome | CRIConnection | CDPSession | Object

Private Members

private _client: Chrome | CRIConnection | CDPSession | Object source

private _path: string source

private _recording: boolean source

Public Methods

public async start(options: {path: string, screenshots?: boolean, categories?: Array<string>}) source

Params:

NameTypeAttributeDescription
options {path: string, screenshots?: boolean, categories?: Array<string>}
  • nullable: false

public async stop(): Promise<Buffer> source

Return:

Promise<Buffer>

Private Methods

private async _readStream(handle: string, path: string): * source

Params:

NameTypeAttributeDescription
handle string
path string

Return:

*