UNPKG

testplane

Version:

Tests framework based on mocha and wdio

19 lines (18 loc) 688 B
import type { Browser } from "../types"; export interface CaptureSnapshotOptions { includeTags?: string[]; includeAttrs?: string[]; excludeTags?: string[]; excludeAttrs?: string[]; truncateText?: boolean; maxTextLength?: number; } export interface CaptureSnapshotResult { snapshot: string; omittedTags: string[]; omittedAttributes: string[]; textWasTruncated: boolean; } export declare const captureDomSnapshotInBrowser: (selectorOrElementOrOptions?: string | WebdriverIO.Element | CaptureSnapshotOptions, maybeOptions?: CaptureSnapshotOptions) => CaptureSnapshotResult; declare const _default: (browser: Browser) => void; export default _default;