Ejemplo n.º 1
0
 def __init__(self, name, dev, uri):
     self._name = name
     self.device = dev
     try:
         self.proxy = self.device.iosproxy
     except AttributeError:
         self.device.iosproxy = IOSProxy(**check_platform_ios(uri))
         self.proxy = self.device.iosproxy
Ejemplo n.º 2
0
    def __init__(self, uri):
        super(IOSDevice, self).__init__(uri)

        kw = check_platform_ios(uri)
        self.iosproxy = IOSProxy(**kw)

        self.add_component(IOSAppComponent("app", self, uri))
        self.add_component(IOSNetworkComponent("network", self, uri))
        self.add_component(IOSInputComponent("input", self, uri))
        self.add_component(IOSKeyEventComponent("keyevent", self, uri))
        self.add_component(IOSScreenComponent("screen", self, uri))
        self.add_component(IOSStatueComponent("statue", self, uri))
Ejemplo n.º 3
0
 def uuid(self):
     try:
         return self.iosproxy.addr
     except AttributeError:
         self.iosproxy = IOSProxy(**check_platform_ios(self.uri))
         return self.iosproxy.addr