title: How to configure Protractor (JS) for running tests in Microsoft Edge?
body: <p>I want to set my protractor.conf.js to run tests in Edge instead of in Chrome. Setting this</p>
  
  <pre><code>capabilities: {
      'browserName': 'MicrosoftEdge'
  }
  </code></pre>
  
  <p>results in <code>SessionNotCreatedError: Unable to create new service: EdgeDriverService</code> with an error code of 199. I downloaded the MicrosoftWebDriver.exe for the version of Edge that I have from <a href="https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/" rel="noreferrer">Microsoft's website</a>, but I can't figure out how to tell Protractor where to find that driver. I've tried adding it to my user path, my system path, the selenium folder in protractor's node modules folder, and giving a <code>jvmArgs:</code> or <code>seleniumArgs:</code> of <code>['-Dwebdriver.edge.driver="&lt;path-to-driver"']</code>, but I still get that SessionNotCreatedError.</p>
  
  <p>I'm only writing pure JavaScript, no Java or C#, and I want all of this to be set as attributes in the protractor.conf.js file, nothing set in the actual file of tests. I have the most recent version of Node, and I'm making sure to have Edge closed when running <code>ng e2e</code>. What do I need to change or add to my config file to get this to run?</p>
  
  <p>EDIT: From <a href="https://github.com/angular/protractor/issues/2377" rel="noreferrer">this github issue</a>, I added <code>seleniumAddress: http://127.0.01:17556/</code> to my config file, but now I'm getting an <code>ECONNREFUSED 127.0.0.1:17556</code> error with error code 135. I got that address from one of the comments on that github issue, but I get the same error regardless of starting the Edge driver manually or just running <code>ng e2e --config &lt;path-to-config&gt;</code>.</p>
  
  <hr>
  
  <p><strong>SOLUTION</strong><br>
  Add <code>seleniumAddress: 'http://localhost:4444/wd/hub'</code> to the config file. Run  the edge driver manually with <code>webdriver-manager start --edge "&lt;path-to-driver&gt;\MicrosoftWebDriver.exe"</code>, and then run <code>ng e2e</code> in another window. Thank you so much to HaC for this solution!</p>