def get(self, device_id): d = get_device(device_id) if d.platform == 'ios': self.write(uidumplib.get_ios_hierarchy(d)) elif d.platform == 'android': self.write(uidumplib.get_android_hierarchy(d)) elif d.platform == 'neco': self.write(d.dump_hierarchy()) else: self.write("Unknown platform")
def get(self, device_id): d = get_device(device_id) if d.platform == 'ios': self.write(uidumplib.get_ios_hierarchy(d)) elif d.platform == 'android': self.write(uidumplib.get_android_hierarchy(d)) elif d.platform == 'neco': dump = d.dump_hierarchy() self.write(dump) else: self.write("Unknown platform")
def dump_hierarchy(self): return uidumplib.get_ios_hierarchy(self._client, self.__scale)