title: Failed: This driver instance does not have a valid session ID (did you call WebDriver.quit()?) and may no longer be used
body: <p>I have used restartBrowserBetweenTests: true in the config file.</p>
  
  <p>First test case executes properly and browser reopens after the first test. </p>
  
  <p>Then it will execute till the last step in beforeEach method. </p>
  
  <p>When it tries to execute the second i am getting <code>Message:Failed: This driver instance does not have a valid session ID (did you call WebDriver.quit()?) and may no longer be used</code></p>
  
  <pre><code>beforeEach(function()
      {
      browser.waitForAngularEnabled(false);
      browser.get(url);
      element(by.id('identity')).sendKeys(usrname);
      element(by.id('password')).sendKeys(pwd);
      element(by.name('submit')).click();
      element(by.xpath('/html/body/div[1]/div/div/div[2]/div/p/a[1]')).click();
      browser.driver.sleep(4000);
      });
  
  
  it('Login Test',function()
  {
      var title=browser.getTitle();
      expect(title).toEqual('Welcome to Home Page.');
      browser.driver.sleep(4000);  
  });
  
  it('Create a new lead',function()
  {       
      browser.driver.sleep(4000);
      lead.click();
  
  });
  </code></pre>