edgedriver
Version:
Microsofts' EdgeDriver for Node.js
28 lines • 1.08 kB
TypeScript
import type { EdgedriverParameters } from './types.js';
interface Priorities {
regex: RegExp;
weight: number;
}
export declare function getNameByArchitecture(): string;
export declare function parseParams(params: EdgedriverParameters): string[];
/**
* helper utility to clone a list
* @param {Any[]} arr list of things
* @return {Any[]} new list of same things
*/
export declare function uniq(arr: string[]): string[];
export declare function sort(installations: string[], priorities: Priorities[]): string[];
/**
* Look for edge executables by using the which command
*/
export declare function findByWhich(executables: string[], priorities: Priorities[]): string[];
/**
* Helper utility to check file access
* @param {string} file file to check access for
* @return true if file can be accessed
*/
export declare function hasAccessSync(filePath: string): boolean;
export declare function hasAccess(filePath: string): Promise<boolean>;
export declare function sleep(ms?: number): Promise<unknown>;
export {};
//# sourceMappingURL=utils.d.ts.map