poco.drivers.std.screen module

class StdScreen(client)[源代码]

基类:poco.sdk.interfaces.screen.ScreenInterface

getPortSize()[源代码]

Get the real resolution of the screen in pixels.

返回:width and height in pixels
返回类型:2-list (float, float)
getScreen(width)[源代码]

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

参数:width (int) – expected width of the screenshot in pixels
返回:
  • b64img: base64 encoded screen data
  • format: screen data format (png/jpg/etc.)
返回类型:2-list (str, str)