title: E2E tests with protractor: "Failed: Dismissed user prompt dialog"
body: <p>I am trying to test an Angular-webapp with protractor. After opening the app, you need to sign in, in order to access the REST API. When executing my tests with Chrome, the login dialog opens normally and I can input the login information, after which the tests run automatically and smoothly, but when I try setting the browser to firefox, the login dialog is dismissed and all tests fail.</p>
  <p>The error message appears like this:</p>
  <pre><code> - Failed: Cannot read property 'ver' of null
   - Failed: Dismissed user prompt dialog: http://localhost:4200 verlangt einen Benutzernamen und ein Passwort. Ausgabe der Website: &quot;application&quot;
  </code></pre>
  <p>(where 'verlangt einen Benutzernamen und ein Passwort. Ausgabe der Website: &quot;application&quot;' translates to 'requires a username and password. Output of the website: &quot;application&quot;')
  for the following test (which doesn't read any property ver):</p>
  <pre class="lang-js prettyprint-override"><code>it('Title contains title', () =&gt; {
      expect(browser.getTitle()).toContain('title');
    });
  </code></pre>
  <p>My protractor.conf.js looks like this:</p>
  <pre class="lang-js prettyprint-override"><code>exports.config = {
   allScriptsTimeout: 11000,
   specs: [
     './src/**/*.e2e-spec.ts'
   ],
   capabilities: {
     browserName: 'firefox'
   },
   directConnect: true,
   baseUrl: 'http://localhost:4200/',
   framework: 'jasmine',
   jasmineNodeOpts: {
     showColors: true,
     defaultTimeoutInterval: 30000,
     print: function() {}
   },
   onPrepare() {
     require('ts-node').register({
       project: require('path').join(__dirname, './tsconfig.json')
     });
     jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } }));
   }
  };
  </code></pre>
  <p>Is there any way to configure the webdriver such that Firefox doesn't dismiss the dialog or even to automatically fill in the dialog?</p>