poco.drivers.ios package

class iosDumper(client)[source]

Bases: FrozenUIDumper

dumpHierarchy(onlyVisibleNode=True)[source]
Returns:

json serializable dict holding the whole hierarchy data

Return type:

dict

class iosPoco(device=None, **kwargs)[source]

Bases: Poco

class iosPocoAgent(client)[source]

Bases: PocoAgent

json_parser(node, screen_size, switch_flag=False, ori='PORTRAIT')[source]
Parameters:
  • 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’]

Returns: