poco.drivers.std.screen module

class StdScreen(client)[source]

Bases: poco.sdk.interfaces.screen.ScreenInterface

getPortSize(**kwargs)[source]

Get the real resolution of the screen in pixels.

Returns:width and height in pixels
Return type:2-list (float, float)
getScreen(width)[source]

Take the screenshot of the target device screen or target app’s window

Parameters:width (int) – expected width of the screenshot in pixels
Returns:
  • b64img: base64 encoded screen data
  • format: screen data format (png/jpg/etc.)
Return type:2-list (str, str)