UNPKG

playwright-fluent

Version:
21 lines (20 loc) 880 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getEdgePath = void 0; const tslib_1 = require("tslib"); const os = (0, tslib_1.__importStar)(require("os")); const currentPlatformType = os.type(); function getEdgePath() { switch (currentPlatformType) { case 'Darwin': return '/Applications/Microsoft Edge.app/Contents/MacOS/Microsoft Edge'; case 'Windows_NT': return '%windir%/SystemApps/Microsoft.MicrosoftEdge_8wekyb3d8bbwe/MicrosoftEdge.exe'; case 'Linux': // Need help to get default install path on Linux. PR is welcomed throw new Error('You should supply the path to the Edge App in the launch options'); default: throw new Error('You should supply the path to the Edge App in the launch options'); } } exports.getEdgePath = getEdgePath;