From 08a225ea779f40bc03fe776e87f9bb6a2b110b09 Mon Sep 17 00:00:00 2001 From: Joey Parrish Date: Thu, 3 Feb 2022 00:41:45 +0000 Subject: [PATCH] feat: Add MS Edge support --- index.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index c595e82..20e4fdb 100644 --- a/index.js +++ b/index.js @@ -180,6 +180,12 @@ const LocalWebDriverChrome = function(baseBrowserDecorator, logger) { // TODO: Add Chrome on android? +const LocalWebDriverEdge = function(baseBrowserDecorator, logger) { + LocalWebDriverBase.call(this, + 'Edge', 'msedgedriver', (port) => ['--port=' + port], + baseBrowserDecorator, logger); +}; + const LocalWebDriverFirefox = function(baseBrowserDecorator, logger) { LocalWebDriverBase.call(this, 'Firefox', 'geckodriver', (port) => ['-p', port], @@ -192,14 +198,14 @@ const LocalWebDriverSafari = function(baseBrowserDecorator, logger) { baseBrowserDecorator, logger); }; -// TODO: Add MS Edge - LocalWebDriverChrome.$inject = ['baseBrowserDecorator', 'logger']; +LocalWebDriverEdge.$inject = ['baseBrowserDecorator', 'logger']; LocalWebDriverFirefox.$inject = ['baseBrowserDecorator', 'logger']; LocalWebDriverSafari.$inject = ['baseBrowserDecorator', 'logger']; module.exports = { 'launcher:Chrome': ['type', LocalWebDriverChrome], + 'launcher:Edge': ['type', LocalWebDriverEdge], 'launcher:Firefox': ['type', LocalWebDriverFirefox], };