appium-chromium-driver
Version:
Appium driver for Chromium-based browsers that work with Chromedriver
13 lines • 532 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isMsEdge = isMsEdge;
/**
* Determine if the given browser name corresponds to Microsoft Edge.
* 'MicrosoftEdge' is old format. Newer MSEdge accepts 'msedge' only as the browser name.
* @param browserName The name of the browser.
* @returns True if the browser is Microsoft Edge, false otherwise.
*/
function isMsEdge(browserName) {
return /^(MicrosoftEdge|msedge)$/i.test(browserName ?? '');
}
//# sourceMappingURL=browser-identity.js.map