var os = require('os');
var path = require('path');
var programFiles = os.arch() === "x64" ? process.env["ProgramFiles(x86)"] : process.env.ProgramFiles;
var cwd = path.dirname(programFiles);
var appData = appData || process.env.APPDATA;

module.exports = {
  chrome: {
    defaultLocation: altPaths('Google', 'Chrome', 'Application', 'chrome.exe') ,
    pathQuery: 'dir /s /b chrome.exe',
    cwd: cwd,
    opensTab: true
  },
  canary: {
    defaultLocation: altPaths('Google', 'Chrome SxS', 'Application', 'chrome.exe')
  },
  firefox: {
    defaultLocation: path.join(programFiles, 'Mozilla Firefox', 'firefox.exe'),
    pathQuery: 'dir /s /b firefox.exe',
    cwd: cwd,
    opensTab: true
  },
  aurora: {
    defaultLocation: path.join(programFiles, 'Aurora', 'firefox.exe'),
    opensTab: true
  },
  opera: {
    defaultLocation: path.join(programFiles, 'Opera', 'launcher.exe'),
    pathQuery: 'dir /s /b opera.exe',
    cwd: cwd,
    imageName: 'opera.exe',
    opensTab: true
  },
  ie: {
    defaultLocation: path.join(programFiles, 'Internet Explorer', 'iexplore.exe'),
    pathQuery: 'dir /s /b iexplore.exe',
    cwd: cwd
  },
  phantom: {
    defaultLocation: path.join(programFiles, 'phantomjs', 'phantomjs.exe'),
    pathQuery: 'dir /s /b phantomjs.exe',
    args: [path.join(__dirname, '..', '..', '..', 'resources/phantom.js')],
    multi: true,
    cwd: cwd
  },
  nodeWebkit: {
    pathQuery: 'dir /s /b nw.exe',
    multi: true,
    cwd: cwd,
    imageName: 'nw.exe',
    getCommand: function(browser, url) {
      var app = process.cwd();
      return '"' + browser.command + '" ' + app + ' --url="' + url + '"';
    }
  }
};

function altPaths() {
  var args = Array.prototype.slice.call(arguments);
  return [
    path.join.apply(path, [programFiles].concat(args)),
    path.join.apply(path, [appData].concat(args))
  ];
}

@@ -13,24 +13,48 @@
 uire('os');%0A
+var fs = require('fs');%0A
 var path = r
@@ -171,16 +171,337 @@
 mFiles;%0A
+var windowsDirectory = process.env.winDir;%0Avar systemApps = path.join(windowsDirectory, 'SystemApps');%0Avar microsoftEdgeDirectory = fs.readdirSync(systemApps).filter(function(folder) %7B%0A    return folder.startsWith('Microsoft.MicrosoftEdge');%0A  %7D).map(function(folder) %7B%0A    return path.join(systemApps, folder);%0A  %7D)%5B0%5D;%0A
 var cwd 
@@ -1480,16 +1480,239 @@
 wd%0A  %7D,%0A
+  edge: %7B%0A    defaultLocation: path.join(microsoftEdgeDirectory, 'MicrosoftEdge.exe'),%0A    getCommand: function(browser, url) %7B%0A      return 'start /wait microsoft-edge:' + url;%0A    %7D,%0A    opensTab: true,%0A    cwd: cwd%0A  %7D,%0A
   phanto

Add launching of the Edge browser