/// import { NewWindowOptions } from "webdriverio"; import { WdioCheckFullPageMethodOptions, WdioCheckScreenMethodOptions } from "wdio-image-comparison-service"; import { WebElement } from "../elements"; import { IHttpRequest, IHttpResponse, IJSONDiffOptions, TElementLocation } from "../interfaces"; export default abstract class Driver { static acceptAlert(): void; static dismissAlert(): void; static closeLastWindow(): void; static closeChildWindows(): void; static clickCoordinates(x?: number, y?: number, origin?: "pointer" | "viewport" | WebdriverIO.Element): void; static dragRelativeToPointer(dest: TElementLocation, dragDuration?: number): void; static focusLastWindow(): void; static focusParentWindow(): void; static deleteCookie(cookie: string): void; static deleteCookies(): void; static interceptAjaxRequests(): void; static getAlertText(): string; static maximizeWindow(): void; static newWindow(url: string, options?: NewWindowOptions): void; static back(): void; static forward(): void; static refresh(): void; static pause(milliseconds: number): void; static pressKeys(...keys: string[]): void; static scrollTo(x: number, y: number): void; static scrollToTop(): void; static scrollToBottom(): void; static setCookie(key: string, value: string): void; static getLocalStorage(key: string): any; static setLocalStorage(key: string, value: string): void; static getSessionStorage(key: string): any; static setSessionStorage(key: string, value: string): void; static setWindowSize(width: string, height: string): void; static sendAlertText(text: string): void; static sendHttpRequest(request: IHttpRequest): IHttpResponse; static switchToFrame(element: WebElement): void; static switchToParentFrame(): void; static url(url: string): void; static checkPageIsReady(preferred?: boolean): void; static checkAjaxRequestsMatchRef(filename: string, preferred?: boolean, options?: IJSONDiffOptions): void; static checkModalExisting(preferred?: boolean): void; static checkModalTextContains(expected: string, preferred?: boolean): void; static checkModalTextEquals(expected: string, preferred?: boolean): void; static checkCookieContains(cookie: string, expected: string, preferred?: boolean): void; static checkCookieEquals(cookie: string, expected: string, preferred?: boolean): void; static checkCookieExists(cookie: string, preferred?: boolean): void; static checkCountEquals(expected: number, preferred?: boolean): void; static checkCountGreaterThan(expected: number, preferred?: boolean): void; static checkCountLessThan(expected: number, preferred?: boolean): void; static checkCustomTruthy(truthy: Function, preferred?: boolean): void; static checkGAEntriesMatchRef(filename: string, event: string, preferred?: boolean, options?: IJSONDiffOptions): void; static checkHttpResponseMatchRef(request: IHttpRequest, filename: string, preferred?: boolean, options?: IJSONDiffOptions): void; static checkImageMatchRef(context: string, filename: string, preferred?: boolean, options?: WdioCheckFullPageMethodOptions | WdioCheckScreenMethodOptions): void; static checkTitleContains(expected: string, preferred?: boolean): void; static checkTitleEquals(expected: string, preferred?: boolean): void; static checkUrlContains(expected: string, preferred?: boolean): void; static checkUrlEquals(expected: string, preferred?: boolean): void; static checkUrlPathContains(expected: string, preferred?: boolean): void; static checkUrlPathEquals(expected: string, preferred?: boolean): void; }