poco.drivers.ios package

class iosDumper(client)[源代码]

基类:FrozenUIDumper

dumpHierarchy(onlyVisibleNode=True)[源代码]
返回:

json serializable dict holding the whole hierarchy data

返回类型:

dict

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

基类:Poco

class iosPocoAgent(client)[源代码]

基类: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’]

返回: