Browser automatically closed before test run in Protractor
<p>I'm new to Protractor. I'm writing a script to test my web site. But, Browser opens and closes. I couldn't even get to see what happens. Can someone tell me what to do?</p>

<p>This is my configuration.js</p>

<pre><code>  exports.config = {
      seleniumAddress: 'http://localhost:4444/wd/hub',
      specs: ['HomePageObjectSpec.js'],
      onPrepare: function () {  
         browser.driver.manage().window().setSize(1680, 1050);
      },
   }
</code></pre>

<p>Here is my test.js</p>

<pre><code>describe('Protractor Demo App', function() {
  it('should have a title', function() {
    browser.get('my url');

    element(by.css('.btn')).click();
  });
});
</code></pre>