poco.drivers.ios package

class iosDumper(client)[源代码]

基类:poco.freezeui.hierarchy.FrozenUIDumper

dumpHierarchy(onlyVisibleNode=True)[源代码]

Returns: dict: json serializable dict holding the whole hierarchy data

class iosPoco(device=None, **kwargs)[源代码]

基类:poco.pocofw.Poco

class iosPocoAgent(client)[源代码]

基类:poco.agent.PocoAgent

json_parser(node, screen_size, switch_flag=False, ori='PORTRAIT')[源代码]
参数:
  • node – node info {}
  • screen_size – ios.windows_size()
  • switch_flag – If it is an ipad , when on the desktop, all coordinates must be converted to vertical screen coordinates
  • ori – wda [‘PORTRAIT’, ‘LANDSCAPE’, ‘UIA_DEVICE_ORIENTATION_LANDSCAPERIGHT’, ‘UIA_DEVICE_ORIENTATION_PORTRAIT_UPSIDEDOWN’]
返回: