UNPKG

appium-remote-debugger

Version:
23 lines 1.26 kB
/** * Loads an atom script from the atoms directory and caches it. * If the atom has been loaded before, returns the cached version. * * @param atomName - The name of the atom to load (without the .js extension). * @returns A promise that resolves to the atom script as a Buffer. * @throws Error if the atom file cannot be loaded. */ export declare function getAtom(atomName: string): Promise<Buffer>; /** * Generates a complete script string for executing a Selenium atom. * Handles frame contexts and optional async callbacks. * * @param atom - The name of the atom to execute. * @param args - Arguments to pass to the atom function. Defaults to empty array. * @param frames - Array of frame identifiers to execute the atom in nested frames. * Defaults to empty array (executes in default context). * @param asyncCallBack - Optional callback function string for async execution. * If provided, the atom will be called with this callback. * @returns A promise that resolves to the complete script string ready for execution. */ export declare function getScriptForAtom(atom: string, args?: any[], frames?: string[], asyncCallBack?: string | null): Promise<string>; //# sourceMappingURL=atoms.d.ts.map