appium-android-driver
Version:
Android UiAutomator and Chrome support for Appium
15 lines • 822 B
TypeScript
import type { StringRecord } from '@appium/types';
import type { AndroidDriver } from '../driver';
/**
* Executes a script on the device or in a web context.
*
* @param script The script to execute. If it starts with 'mobile:', it will be treated
* as a mobile command. Otherwise, it will be executed in the web context (if available).
* @param args Optional arguments to pass to the script.
* @returns Promise that resolves to the script execution result.
* @throws {errors.NotImplementedError} If not in a web context and script doesn't start with 'mobile:'.
*/
export declare function execute(this: AndroidDriver, script: string, args?: ExecuteMethodArgs): Promise<any>;
type ExecuteMethodArgs = readonly any[] | readonly [StringRecord] | Readonly<StringRecord>;
export {};
//# sourceMappingURL=execute.d.ts.map