var path = require('path');

exports.config = {
  //directConnect: true,

  seleniumAddress: 'http://localhost:4444/wd/hub',

  // Spec patterns are relative to the location of this config.
  //specs: [
  //  'example_spec.js'
  //],

  capabilities: {
    'browserName': 'chrome',
    'chromeOptions': {
      'args': ['--load-extension=' + path.join(__dirname, '../extension')]
    }
  },

  onPrepare: function() {
    $PREPARE
  }
};

@@ -250,17 +250,16 @@
 : %7B%0A    
-'
 browserN
@@ -261,17 +261,16 @@
 wserName
-'
 : 'chrom
@@ -277,17 +277,16 @@
 e',%0A    
-'
 chromeOp
@@ -290,17 +290,16 @@
 eOptions
-'
 : %7B%0A    
@@ -304,75 +304,46 @@
     
-'
 args
-'
 : %5B
-'--load-extension=' + path.join(__dirname, '../extension')
+%0A        $CHROME_OPTIONS%0A      
 %5D%0A  

Add variable for chrome options