exports.config = {
  allScriptsTimeout: 11000,

  specs: [
    'e2e/*.js'
  ],

  capabilities: {
    'browserName': 'chrome',
    'chromeOptions': {
      'args': ['load-extension=/Users/adamu/src/screensharing-extensions/chrome/ScreenSharing/',
        'auto-select-desktop-capture-source="Entire screen"', 'use-fake-device-for-media-stream',
        'use-fake-ui-for-media-stream']
    }
  },

  directConnect: true,

  baseUrl: 'https://adam.local:5000/',

  framework: 'jasmine',

  jasmineNodeOpts: {
    defaultTimeoutInterval: 30000
  }
};

exports.config = {
  allScriptsTimeout: 11000,

  specs: [
    'e2e/*.js'
  ],

  capabilities: {
    'browserName': 'chrome',
    'chromeOptions': {
      'args': ['load-extension=/Users/adamu/src/screensharing-extensions/chrome/ScreenSharing/',
        'auto-select-desktop-capture-source="Entire screen"']
    }
  },

  directConnect: true,

  baseUrl: 'https://adam.local:5000/',

  framework: 'jasmine',

  jasmineNodeOpts: {
    defaultTimeoutInterval: 30000
  }
};

--- 
+++ 
@@ -9,7 +9,8 @@
     'browserName': 'chrome',
     'chromeOptions': {
       'args': ['load-extension=/Users/adamu/src/screensharing-extensions/chrome/ScreenSharing/',
-        'auto-select-desktop-capture-source="Entire screen"']
+        'auto-select-desktop-capture-source="Entire screen"', 'use-fake-device-for-media-stream',
+        'use-fake-ui-for-media-stream']
     }
   },
 
Use fake devices for protractor test
