title: Chromedriver: session deleted because of page crash
body: <p>I am writing tests for my AngularJS application using <strong>protractor</strong> and <strong>jasmine</strong>.</p>
  
  <p>I am testing file upload case using the code below:</p>
  
  <pre><code>const fileElem = element(by.css('input[type="file"]'));
  
  fileElem.sendKeys(absoluteFilePath);
  
  browser.sleep(500);
  </code></pre>
  
  <p>It <strong>works locally</strong> with the next packages: </p>
  
  <pre><code>"chromedriver": "2.38.2", "protractor": "5.3.1", Chrome - v.66.0.3359.139
  </code></pre>
  
  <p>But when I run this tests on GitLab CI, I get an error: </p>
  
  <blockquote>
    <p>[chrome #01] F    ✗ should upload the file</p>
    
    <p>[chrome #01]       - Failed: unknown error: session deleted because of
    page crash</p>
    
    <p>[chrome #01]       from unknown error: cannot determine loading status</p>
    
    <p>[chrome #01]       from tab crashed</p>
    
    <p>[chrome #01]         (Session info: headless chrome=65.0.3325.181)</p>
    
    <p>[chrome #01]         (Driver info: chromedriver=2.38.552522 
    (437e6fbedfa8762dec75e2c5b3ddb86763dc9dcb),platform=Linux
    4.13.5-coreos-r2 x86_64)</p>
  </blockquote>
  
  <p>I am using <strong>ng-file-upload</strong> directive.</p>
  
  <p>Thanks for your help!</p>