Skip to content

Commit

Permalink
feat: Add MS Edge support
Browse files Browse the repository at this point in the history
  • Loading branch information
joeyparrish committed Feb 3, 2022
1 parent 0db8b0f commit 08a225e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand All @@ -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],
};

Expand Down

0 comments on commit 08a225e

Please sign in to comment.