function nextFrame() {
  return browser.executeAsync((done) => {
    requestAnimationFrame(() => {
      requestAnimationFrame(() => {
        done();
      });
    });
  });
}
Returns a promise that resolves once the browser has run the next
animation frame.
@return {Promise<void>}