title: Protractor: How to use browser.sleep inside of element.all(locator).each(eachFunction)
body: <p>Expecting: elem[0] text to print, sleep, elem[1] text to print, sleep, etc...</p>
  
  <p>Actual: is printing out the text for each element then executing browser.sleep once at the end.</p>
  
  <p>Once I get this working I would like to actually click on each link and assert a corresponding profile page is loaded.</p>
  
  <p>I should also mention that I have SELENIUM_PROMISE_MANAGER: false and am using mocha </p>
  
  <pre><code>    describe.only('clicking each user in the list', () =&gt; {
          it('should display the correct profile page', async () =&gt; {
              await element.all(by.repeater('user in currentNode.children')).each(async (elem)=&gt; {
                  console.log(await elem.getText())
                  await browser.sleep(5000)
              });
          })
  });
  </code></pre>