UNPKG

@neuralegion/cypress-har-generator

Version:

The Cypress plugin for generating HTTP Archive (HAR) files is a tool that allows developers and QA engineers to capture detailed information about network requests made during the execution of Cypress tests.

21 lines (20 loc) 801 B
import { RetryStrategy } from './RetryStrategy'; import { Logger } from '../utils/Logger'; import type { Connection } from './Connection'; import type { Network } from '../network'; import type { NetworkOptions } from './NetworkOptions'; import CDP from 'chrome-remote-interface'; import type { Options } from 'chrome-remote-interface'; export declare class CDPConnection implements Connection { private readonly options; private readonly logger; private readonly retryStrategy; private _network?; private _cdp?; get cdp(): CDP.Client | undefined; constructor(options: Options, logger: Logger, retryStrategy: RetryStrategy); open(): Promise<void>; close(): Promise<void>; discoverNetwork(options?: NetworkOptions): Network; private populateBrowserTarget; }