docs: function fromWireValue(driver, value) {
    if (Array.isArray(value)) {
      value = value.map(v => fromWireValue(driver, v));
    } else if (WebElement.isId(value)) {
      let id = WebElement.extractId(value);
      value = new WebElement(driver, id);
    } else if (value && typeof value === 'object') {
      let result = {};
      for (let key in value) {
        if (value.hasOwnProperty(key)) {
          result[key] = fromWireValue(driver, value[key]);
        }
      }
      value = result;
    }
    return value;
  }