poco.drivers.windows.windowsui_poco module

class WindowsPoco(selector=None, addr=('localhost', 15004), **options)[source]

Bases: poco.drivers.std.StdPoco

Poco WindowsUI implementation.

Parameters:
  • selector (dict) –

    find window by a selector, optional parameters: title, handle, title_re title: find windows by title

    handle: find windows by handle

    title_re: find windows by regular expression of title

  • addr (tuple) – where the WindowsUI running on, (localhost,15004) by default
  • options – see poco.pocofw.Poco

Examples

If your programme is running, you could initialize poco instance by using following snippet::
from poco.drivers.windows import WindowsPoco # poco = WindowsPoco({‘title’:’xxx’}) # poco = WindowsPoco({‘handle’:123456}) # poco = WindowsPoco({‘title_re’:’[a-z][a-z][a-z]’})