robocorp-windows
The robocop-windows package brings a library that can be used for Windows desktop automation.
The basic idea of the library is to enable windows and controls to be found by leveraging "locators" (strings that identify how to reach some window or control), then interacting with such elements.
There are three fundamental abstractions in the library:
Desktop
: enables findingWindowElement
s and interacting directly with the desktop, like opening or closing apps. These actions aren't tied to a specific Window or Control.WindowElement
: enables finding directControlElement
s and interacting with a specific Window.ControlElement
: enables finding childControlElement
s and interacting with a specific Control.
Note: The library itself always creates these classes which are not expected to be subclassed or instanced directly.
Usage
đ Check that you have added the dependency in your configuration; this library is not part of the robocorp bundle.
- conda.yaml for automation Task Packages
- package.yaml for automation Action Packages
- requirements.txt, pyproject.toml, setup.py|cfg etc. for the rest
The library concepts revolve around the idea that the window of interest will be initially found using find_window
and then, with that window reference, other controls can be queried and interacted with (for clicking, entering text etc.).
Below is an example using the Windows' Calculator app:
Changelog
A list of releases and corresponding changes can be found in the changelog.