import { WdioCheckElementMethodOptions } from "wdio-image-comparison-service"; import { Selector } from "webdriverio"; import ElementConditionsResult from "./elementConditionsResult"; import { TElementCoordinates } from "../../interfaces"; export default class ElementConditions { private readonly conditions; private readonly result; private readonly selector; name: string; timeout?: number; constructor(selector: Selector, name?: string); setTimeout(timeout: number): this; attributeContains(attribute: string, expected: string, preferred: boolean): ElementConditions; axisLocationEquals(axis: TElementCoordinates, expected: number, preferred: boolean): ElementConditions; attributeExists(attribute: string, preferred: boolean): ElementConditions; attributeEquals(attribute: string, expected: string, preferred: boolean): ElementConditions; clickable(preferred: boolean): ElementConditions; countEquals(expected: number, preferred: boolean): ElementConditions; countGreaterThan(expected: number, preferred: boolean): ElementConditions; countLessThan(expected: number, preferred: boolean): ElementConditions; cssPropertyExists(cssProperty: string, preferred: boolean): ElementConditions; displayed(preferred: boolean): ElementConditions; displayedInVewport(preferred: boolean): ElementConditions; enabled(preferred: boolean): ElementConditions; existing(preferred: boolean): ElementConditions; focused(preferred: boolean): ElementConditions; imageMatch(filename: string, preferred: boolean, options?: WdioCheckElementMethodOptions): ElementConditions; selected(preferred: boolean): ElementConditions; sizeEquals(width: number, height: number, preferred: boolean): ElementConditions; sizeHeightEquals(expected: number, preferred: boolean): ElementConditions; sizeWidthEquals(expected: number, preferred: boolean): ElementConditions; stylePropContains(prop: string, expected: string, preferred: boolean): ElementConditions; stylePropEquals(prop: string, expected: string, preferred: boolean): ElementConditions; stylePropExists(prop: string, preferred: boolean): ElementConditions; textContains(expected: string, preferred: boolean): ElementConditions; textEmpty(preferred: boolean): ElementConditions; textEquals(expected: string, preferred: boolean): ElementConditions; textEqualsArray(expected: string[], preferred: boolean): ElementConditions; textContainsArray(expected: string[], preferred: boolean): ElementConditions; valueContains(expected: string, preferred: boolean): ElementConditions; valueEmpty(preferred: boolean): ElementConditions; valueEquals(expected: string, preferred: boolean): ElementConditions; run(action?: Function, timeout?: number): ElementConditionsResult; runStrict(action?: Function, timeout?: number): ElementConditionsResult; }