docs: function checkResponse(data) {
    if (data && typeof data.error === 'string') {
      let ctor = ERROR_CODE_TO_TYPE.get(data.error) || WebDriverError;
      throw new ctor(data.message);
    }
    return data;
  }