appium-remote-debugger
Version:
Appium proxy for Remote Debugger protocol
17 lines • 1.01 kB
TypeScript
import type { RemoteCommandOpts, ProtocolCommandOpts } from '../types';
/**
* Generates a protocol command object based on the command name and options.
* Extracts only the parameters that are defined for the specific command in the
* WebKit Inspector protocol specification.
*
* @param id - The command identifier.
* @param method - The protocol method name (e.g., 'Page.reload', 'Runtime.evaluate').
* @param opts - Options containing parameters for the command.
* @param direct - If false (default), the resulting command params will be patched
* with default values (objectGroup, includeCommandLineAPI, etc.).
* If true, only the specified parameters are included.
* @returns A ProtocolCommandOpts object with id, method, and params.
* @throws Error if the command method is unknown.
*/
export declare function getProtocolCommand(id: string, method: string, opts: RemoteCommandOpts, direct?: boolean): ProtocolCommandOpts;
//# sourceMappingURL=index.d.ts.map