DolphinDesktop
Python test automation for Windows desktop applications: native UIA/Win32, SAP GUI, Qt, Electron/CEF, Java Swing, Oracle Forms, Delphi, PowerBuilder, mainframe terminals and Office COM. Lazy locators, automatic waits and pytest fixtures share a common style, with stack-specific facades where needed.
Release: 0.2.0 — 2026-11-21. See the changelog for changes from 0.1.0.
Requirements
- Windows 10 or Windows 11 for desktop automation.
- Python 3.11–3.13; 64-bit Python recommended. Qt agent targets must be x64.
- The same Windows user/session and compatible permissions as the application under test. Physical input and pixel capture require an interactive desktop.
Installing or importing the package on Linux/macOS does not enable Windows desktop automation; some non-desktop helpers can still be used there. External applications and runtimes are installed separately from Python extras.
Install and quickstart
Install the latest published release from PyPI:
python -m pip install dolphin-desktop
Install 0.2.0 with pytest support in a dedicated environment:
python -m venv .venv
.\.venv\Scripts\Activate.ps1
python -m pip install "dolphin-desktop[pytest]==0.2.0"
dolphin doctor
dolphin init my-tests --yes
cd my-tests
python -m pytest tests/ -v
The default scaffold creates a Notepad test and a Page Object under objects/.
Run it in the environment where Dolphin was installed. The generated project's
dependency metadata names dolphin-desktop.
For locked repository development, follow
CONTRIBUTING.md.
The underlying API can also be used directly:
from dolphin_desktop import Desktop
with Desktop().launch("notepad.exe") as app:
win = app.window(class_name="Notepad")
editor = win.get_by_role("Document")
if not editor.exists():
editor = win.get_by_role("Edit")
editor.click()
editor.type_text("Hello, Dolphin!")
assert "Hello, Dolphin!" in editor.text()
The context manager cleans up the launched application even if an assertion
fails. Selectors depend on the target's accessibility tree; use dolphin spy
to inspect controls if your Notepad or application exposes different roles.
Features
- Lazy locators with automatic waits, explicit state/text waiters and ordered selector/image fallbacks.
- Programmatic actions such as
invoke()andset_value()where the target exposes the required pattern. Unsupported operations report capability or pattern errors rather than silently substituting physical input. - Backend capability discovery and stack-specific locators for native controls, Java, SAP and CDP.
- pytest
desktop/launchfixtures, retries, screenshots, traces, video and optional Allure reporting. - CLI tools for project scaffolding, environment diagnostics, element picking,
recording, trace viewing and hidden-desktop execution with
dolphin-run.
Timeout conventions depend on the API: native locators support
.timeout(seconds), selected convenience methods accept timeout_ms, and
playwright_compat follows Playwright's millisecond convention. See the
API reference for individual signatures.
Application stacks
| Stack | Automation surface | Prerequisites beyond the base package |
|---|---|---|
| Native Windows: WPF, WinForms, UWP, MFC | UIA / Win32 through pywinauto | Target application with accessible controls |
| SAP GUI | COM Scripting, SapGui / SapSession / SapLocator |
SAP GUI; Scripting enabled on client and server |
| Qt 5 / Qt 6 | UIA widgets; bundled agent for QObject, QML and QGraphicsView | Compatible x64 target for agent operations |
| Electron / CEF | CDP through Playwright | [cdp]; target started with remote debugging enabled |
| WebView2 | UIA by default; optional CDP attachment | [cdp] only for DOM access, with an enabled debug endpoint |
| Java Swing / Oracle Forms | Java Access Bridge | JRE/JDK with JAB and an explicitly configured absolute JAVA_HOME |
| Mainframe TN3270 | s3270 subprocess | wc3270 / ws3270.exe |
| Mainframe TN5250 | Native pure-Python protocol client | Reachable IBM i host; write-path limitation below |
| HLLAPI | Emulator DLL binding | Compatible terminal emulator and absolute hllapi_dll_path |
| Delphi VCL / Lazarus LCL | UIA/MSAA controls and Delphi facade | Accessible controls; Name selectors require a provider |
| PowerBuilder | UIA; image/OCR fallback for opaque DataWindow content | [vision] and Tesseract when OCR is needed |
| Excel / Word / PowerPoint / classic Outlook | Public COM facades | Installed desktop Office; configured MAPI profile for Outlook |
| Image fallback | OpenCV template matching / Tesseract OCR | [vision]; Tesseract executable for OCR |
Important boundaries:
- Stock VCL does not automatically publish Delphi component names as UIA AutomationIds. Name lookup requires an application-supplied provider; Dolphin includes no VCL Name provider or RTTI agent.
- Native TN5250 screen reading has live-host coverage; its write/submit path remains unverified against live IBM i hosts. Use HLLAPI with an enterprise emulator for write-critical flows.
Desktop.mainframe(tls=True)enables verified TLS on supported backends. Remote plaintext requires explicitallow_plaintext=True; port 992 alone does not enable TLS.- Outlook automation requires classic Outlook, not new Outlook. Office COM exposes document/item APIs; ribbons and dialogs use UIA/Win32 separately.
- Hidden mode supports suitable programmatic operations; physical clicks and keyboard input still depend on the desktop and control capabilities.
See the stack guides and support matrix for detailed limits.
Optional extras
The following extras are available in 0.2.0:
| Extra | Purpose |
|---|---|
cdp |
Playwright integration for CDP-enabled applications |
vision |
OpenCV, NumPy and pytesseract for template matching and OCR |
fast |
mss for faster screenshots |
pytest |
Supported pytest version and Allure integration |
telemetry |
Sentry integration, enabled explicitly |
all |
cdp, fast, pytest and vision; excludes telemetry and docs |
docs |
MkDocs tools for building the documentation |
Install extras together, for example dolphin-desktop[cdp,vision,pytest], from
the same source/version you selected above. MP4 recording needs an external
ffmpeg executable; the fast extra does not install it. OCR needs a separate
Tesseract installation. There is no video or dev extra in 0.2.0.
Tests and verification
CI covers unit tests, controlled Windows components, native Qt agent
reproducibility, dependency/security checks and wheel installation on
Windows/Linux/macOS. Real-application and external-system suites have separate
prerequisites; their presence in tests/ does not establish a passing run on
every product/version. A skipped test is incomplete verification.
See the current CI runs and contributing guide for test categories, setup and desktop acceptance commands.
Documentation and development
- Documentation: installation, quickstart, guides and API reference.
- Getting Started and Quickstart.
- 0.2.0 documentation sources for this release; hosted documentation may lag these changes.
- Contributing for repository setup, checks and local documentation builds.
Package releases are published by designated project maintainers.
Security
See SECURITY.md for private vulnerability reporting, recorder scope, local control channels and artifact redaction limits. Screenshots, videos and generated scripts can contain sensitive application data; review them before sharing.
Contact and license
Maintained by DolphinSoft: dolphinsoft.pl · kontakt@dolphinsoft.pl.
Metadata
Release files for dolphin-desktop 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dolphin_desktop-0.2.0.tar.gz | 1.4 MB | With provenance | Details for dolphin_desktop-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dolphin_desktop-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for dolphin_desktop-0.2.0-py3-none-any.whl |
Total release size: 2.0 MB
Release files / dolphin_desktop-0.2.0.tar.gz
| Download URL | dolphin_desktop-0.2.0.tar.gz |
|---|---|
| Size | 1.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e2823e0bb85927a20bc20a0058a617a1af39747b0b50041915fa211a3b067afd
|
|
BLAKE2b-256 checksum How to use checksums |
022c56a02100a35b3ff2ae1abcf2b6939440ef85fed6e5d3eb5cbe063789bd44
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.
Transparency logRelease files / dolphin_desktop-0.2.0-py3-none-any.whl
| Download URL | dolphin_desktop-0.2.0-py3-none-any.whl |
|---|---|
| Size | 562.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9cc3e5be2093fba42de4a9996238e9d5070263ff0afb5a12a977f5242aa79ad3
|
|
BLAKE2b-256 checksum How to use checksums |
f255878507fc266c30a8796e4ad9f39ade8c72861d219bfe34e7cfc484779551
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.
Transparency logSecurity for dolphin-desktop 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for dolphin_desktop-0.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.