schickling/chromeless

Is it possible to use promises instead of async await?

bwobst opened this issue · 1 comments

I can't find any mention of promises in the docs or other issues.

You can simply do this:

return chromeless
  .goto('http://google.com')
  .screenshot()
  .then(console.log)
  .then(() => chromeless.end())
  .catch((err) => {
    throw err;
  });