import { ElementFinder } from 'protractor'; import { SaveFullPageMethodOptions } from 'webdriver-image-comparison/build/commands/fullPage.interfaces'; import { SaveScreenMethodOptions } from 'webdriver-image-comparison/build/commands/screen.interfaces'; import { SaveElementMethodOptions } from 'webdriver-image-comparison/build/commands/element.interfaces'; import { BaseClass, ClassOptions } from 'webdriver-image-comparison'; export default class ProtractorImageComparison extends BaseClass { /** * @description This method create new ProtractorImageComparison instance * and provides to use async functions in library options */ static build(options: ClassOptions): Promise; /** * Saves an image of an element */ saveElement(element: ElementFinder, tag: string, options?: SaveElementMethodOptions): Promise; /** * Saves an image of a viewport */ saveScreen(tag: string, options?: SaveScreenMethodOptions): Promise; /** * Saves an image of the complete screen */ saveFullPageScreen(tag: string, options?: SaveFullPageMethodOptions): Promise; /** * Compare an image of an element */ checkElement(element: ElementFinder, tag: string, options?: SaveElementMethodOptions): Promise; /** * Compares an image of a viewport */ checkScreen(tag: string, options?: SaveScreenMethodOptions): Promise; /** * Compares an image of a viewport */ checkFullPageScreen(tag: string, options?: SaveFullPageMethodOptions): Promise; }