appium-chromedriver
Version:
Node.js wrapper around chromedriver.
21 lines • 1.1 kB
TypeScript
/**
* Converts a capability name to W3C format by adding the 'goog:' prefix if needed.
* @param capName - The capability name to convert.
* @returns The W3C-formatted capability name.
*/
export declare function toW3cCapName(capName: string): string;
/**
* Gets a capability value from a capabilities object, handling both standard and W3C format names.
* @param allCaps - The capabilities object to search in.
* @param rawCapName - The capability name to look for (can be in either format).
* @param defaultValue - Optional default value to return if the capability is not found.
* @returns The capability value or the default value.
*/
export declare function getCapValue(allCaps: Record<string, any> | undefined, rawCapName: string, defaultValue?: any): any;
/**
* Converts all capability names in an object to W3C format.
* @param originalCaps - The original capabilities object.
* @returns A new object with W3C-formatted capability names.
*/
export declare function toW3cCapNames(originalCaps?: Record<string, any>): Record<string, any>;
//# sourceMappingURL=protocol-helpers.d.ts.map