executeAsyncAndCatch = async (...args) => {
  const result = await webdriver.executeAsyncScript(...args);

  if (result && result.error) {
    console.error(result.error);
    throw new Error('Error executing async script');
  }
  return result;
}
Executes the passed function (and args) async and logs any errors that
occur. Errors are assumed to be passed to the callback as an object
with the `error` property.

@param {...*} args
@return {*}