title: "setNetworkConditions" in protractor e2e tests says not a function
body: <p>I am trying to use the </p>
  
  <pre><code>driver.setNetworkConditions({ offline : true });
  </code></pre>
  
  <p>in my code, but it says that <code>Failed: _protractor.browser.driver.setNetworkConditions is not a function</code>.</p>
  
  <p>Here is my code to access it.</p>
  
  <pre><code>     import { browser } from 'protractor';
  
          describe('disable browser network', () =&gt; {
              "use strict";
              let browserA = browsers.a;
              it('should disable chrome network', () =&gt; {
                  browserA.ignoreSynchronization = true;
                  browser.driver.setNetworkConditions({ offline: true });
                  //..... my other functionality here
              });
             afterAll(() =&gt; {
             browserA.quit();
             });
          });
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/STcyS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/STcyS.png" alt="stack trace message from jasmine:protractor"></a></p>