/// import { Assertion } from "./assertion"; import { iSuite } from "../interfaces/isuite"; import { asyncSome, asyncNone } from "../util"; import { FlagpoleExecution } from "../flagpole-execution"; import { ValuePromise } from "../value-promise"; import { IteratorBoolCallback } from "../interfaces/iterator-callbacks"; import { FindAllOptions, FindOptions } from "../interfaces/find-options"; import { iHttpRequest } from "../interfaces/http"; import { iAssertionResult } from "../interfaces/iassertion-result"; import { JsFunction, KeyValue, OptionalXY } from "../interfaces/generic-types"; import { ScreenshotOpts } from "../interfaces/screenshot"; import { GestureOpts, GestureType } from "../interfaces/gesture"; import { PointerMove } from "../interfaces/pointer"; import { ScreenProperties } from "../interfaces/screen-properties"; import { iAssertionContext } from "../interfaces/iassertioncontext"; import { iResponse, iScenario, iValue } from ".."; export declare class AssertionContext implements iAssertionContext { readonly scenario: iScenario; readonly response: iResponse; protected _assertions: Assertion[]; protected _subScenarios: Promise[]; constructor(scenario: iScenario, response: iResponse); result: any; get request(): iHttpRequest; get suite(): iSuite; get executionOptions(): FlagpoleExecution; get incompleteAssertions(): Assertion[]; get assertionsResolved(): Promise<(iAssertionResult | null)[]>; get subScenariosResolved(): Promise; get currentUrl(): iValue; comment(input: any): this; assert(message: string, value: any): Assertion; assert(value: any): Assertion; pause(milliseconds: number): Promise; clearThenType(selector: string, textToType: string, opts?: any): ValuePromise; clear(selector: string): ValuePromise; type(selector: string, textToType: string, opts?: any): ValuePromise; selectOption(selector: string, value: string | string[]): Promise; eval(js: JsFunction, ...args: any[]): Promise; waitForFunction(js: JsFunction, opts?: KeyValue, ...args: any[]): Promise; waitForReady(timeout?: number): Promise; waitForLoad(timeout?: number): Promise; waitForNetworkIdle(timeout?: number): Promise; waitForNavigation(timeout?: number, waitFor?: string | string[]): Promise; waitForXPath(xPath: string, timeout?: number): ValuePromise; waitForHidden(selector: string, timeout?: number): ValuePromise; waitForVisible(selector: string, timeout?: number): ValuePromise; waitForHavingText(selector: string, text: string | RegExp, timeout?: number): ValuePromise; waitForExists(selector: string, timeout?: number): ValuePromise; waitForExists(selector: string, contains: string | RegExp, timeout?: number): ValuePromise; waitForNotExists(selector: string, a?: number | string | RegExp, b?: number): ValuePromise; exists(selector: string | string[], a?: string | FindOptions | RegExp, b?: FindOptions): ValuePromise; existsAll(selector: string | string[], a?: string | FindAllOptions | RegExp, b?: FindAllOptions): Promise; existsAny(selectors: string[], a?: string | FindAllOptions | RegExp, b?: FindAllOptions): Promise; find(selector: string | string[], a?: string | RegExp | FindOptions, b?: FindOptions): ValuePromise; findAll(selector: string | string[], a?: string | RegExp | FindAllOptions, b?: FindAllOptions): Promise; findXPath(xPath: string): ValuePromise; findAllXPath(xPath: string): Promise; submit(selector: string): ValuePromise; logFailure(message: string, errorDetails?: any, sourceCode?: any, highlightText?: any): iAssertionResult; logOptionalFailure(message: string, errorDetails?: any): iAssertionResult; logPassing(message: string): iAssertionResult; click(selector: string, opts?: FindOptions): ValuePromise; click(selector: string, contains: string, opts?: FindOptions): ValuePromise; click(selector: string, matches: RegExp, opts?: FindOptions): ValuePromise; openInBrowser(): Promise; screenshot(): Promise; screenshot(localFilePath: string): Promise; screenshot(localFilePath: string, opts: ScreenshotOpts): Promise; screenshot(opts: ScreenshotOpts): Promise; movePointer(...pointers: PointerMove[]): Promise; gesture(type: GestureType, opts: GestureOpts): Promise; push(key: string, value: any): this; set(aliasName: string, value: any): this; get(aliasName: string): T; scrollTo(point: OptionalXY): Promise; map: (array: F[], callback: import("../interfaces/iterator-callbacks").IteratorCallback) => Promise; some: typeof asyncSome; every: (array: T[], callback: IteratorBoolCallback) => Promise; filter: (array: T[], callback: IteratorBoolCallback) => Promise; none: typeof asyncNone; each: (array: T[], callback: import("../interfaces/iterator-callbacks").IteratorCallback) => Promise; count(arr: T[], callback?: IteratorBoolCallback): ValuePromise; abort(message?: string): Promise; rotateScreen(rotation: string | number): Promise; getScreenProperties(): Promise; hideKeyboard(): Promise; getSource(): ValuePromise; protected _findAllForSelectors(selectors: string[], a?: string | FindAllOptions | RegExp, b?: FindAllOptions): Promise<{ [selector: string]: iValue[]; }>; protected _completedAction(verb: string, noun?: string): Promise; protected _failedAction(verb: string, noun?: string): Promise; protected _assertExists(message: string | null, name: string, el: iValue): void; }