appium-chromedriver
Version:
Node.js wrapper around chromedriver.
22 lines • 1.13 kB
TypeScript
import type { ChromedriverDetailsMapping } from '../types';
/**
* Parses the output of the JSON API that retrieves Chromedriver versions
*
* See https://github.com/GoogleChromeLabs/chrome-for-testing#json-api-endpoints for more details.
*
* @param jsonStr - The JSON string from the known-good-versions-with-downloads API
* @returns A mapping of chromedriver entry keys to their details
* @throws {Error} if the JSON cannot be parsed or has an unsupported format
*/
export declare function parseKnownGoodVersionsWithDownloadsJson(jsonStr: string): ChromedriverDetailsMapping;
/**
* Parses the output of the JSON API that retrieves the most recent stable Chromedriver version
*
* See https://github.com/GoogleChromeLabs/chrome-for-testing#json-api-endpoints for more details.
*
* @param jsonStr - The JSON string from the last-known-good-versions API
* @returns The most recent available chromedriver version string
* @throws {Error} if the JSON cannot be parsed or has an unsupported format
*/
export declare function parseLatestKnownGoodVersionsJson(jsonStr: string): string;
//# sourceMappingURL=chromelabs.d.ts.map