UNPKG

systelab-components-wdio-test

Version:
16 lines (15 loc) 831 B
import { ElementFinder } from "../wdio"; import { Widget } from "../widgets"; import { BasePage } from "../pages"; export declare class ScreenshotUtility { private static basePath; private static pixelTolerance; private static imageMatchingThreshold; static setBasePath(basePath: string): void; static setPixelTolerance(pixelTolerance: number): void; static setImageMatchingThreshold(imageMatchingThreshold: number): void; static expectPageScreenshot(page: BasePage, fileName: string, pageDescriptiveName: string): Promise<void>; static expectWidgetScreenshot(widget: Widget, fileName: string, widgetDescriptiveName: string): Promise<void>; static expectScreenshot(element: ElementFinder, fileName: string, elementDescriptiveName: string): Promise<void>; private static compareImageFiles; }