appium-chromedriver
Version:
Node.js wrapper around chromedriver.
30 lines • 1.26 kB
TypeScript
import type { AdditionalDriverDetails, ChromedriverDetailsMapping } from '../types';
/**
* Finds a child node in an XML node by name and/or text content
*
* @param parent - The parent XML node to search in
* @param childName - Optional child node name to match
* @param text - Optional text content to match
* @returns The matching child node or null if not found
*/
export declare function findChildNode(parent: Node | Attr, childName?: string | null, text?: string | null): Node | Attr | null;
/**
* Gets additional chromedriver details from chromedriver
* release notes
*
* @param content - Release notes of the corresponding chromedriver
* @returns AdditionalDriverDetails
*/
export declare function parseNotes(content: string): AdditionalDriverDetails;
/**
* Parses chromedriver storage XML and returns
* the parsed results
*
* @param xml - The chromedriver storage XML
* @param shouldParseNotes [true] - If set to `true`
* then additional drivers information is going to be parsed
* and assigned to `this.mapping`
* @returns Promise<ChromedriverDetailsMapping>
*/
export declare function parseGoogleapiStorageXml(xml: string, shouldParseNotes?: boolean): Promise<ChromedriverDetailsMapping>;
//# sourceMappingURL=googleapis.d.ts.map