appium-xcuitest-driver
Version:
Appium driver for iOS using XCUITest for backend
15 lines • 693 B
TypeScript
import { XCUITestDriver } from '../driver';
import type { StringRecord } from '@appium/types';
type ExecuteMethodArgs = readonly any[] | readonly [StringRecord<unknown>] | Readonly<StringRecord<unknown>>;
/**
* @template TReturn
* @param script - Either a script to run, or in the case of an Execute Method, the name of the script to execute.
* @param args
*/
export declare function execute<TReturn = unknown>(this: XCUITestDriver, script: string, args?: ExecuteMethodArgs): Promise<TReturn>;
/**
* @group Mobile Web Only
*/
export declare function executeAsync(this: XCUITestDriver, script: string, args?: readonly any[]): Promise<any>;
export {};
//# sourceMappingURL=execute.d.ts.map