UNPKG

appium-xcuitest-driver

Version:

Appium driver for iOS using XCUITest for backend

28 lines 1.25 kB
declare namespace _default { /** * Collect the response of an async script execution * @this {XCUITestDriver} * @deprecated * @privateRemarks It's unclear what this is for. Don't use it. */ function receiveAsyncResponse(this: XCUITestDriver, status: any, value: any): Promise<void>; /** * @template {ExecuteMethodArgs} [TArgs = unknown[]] * @template [TReturn = unknown] * @param {string} script - Either a script to run, or in the case of an Execute Method, the name of the script to execute. * @param {TArgs} [args] * @this {XCUITestDriver} * @returns {Promise<TReturn>} */ function execute<TArgs extends ExecuteMethodArgs = unknown[], TReturn = unknown>(this: XCUITestDriver, script: string, args?: TArgs): Promise<TReturn>; /** * @this {XCUITestDriver} * @group Mobile Web Only */ function executeAsync(this: XCUITestDriver, script: any, args: any): Promise<any>; } export default _default; export type StringRecord<T = any> = import("@appium/types").StringRecord<T>; export type ExecuteMethodArgs = readonly any[] | readonly [StringRecord] | Readonly<StringRecord>; import { XCUITestDriver } from '../driver'; //# sourceMappingURL=execute.d.ts.map