CAFE-DESKTOP
CAFE-DESKTOP is a Python package that provides tools and utilities for desktop application testing. It is part of the CAFE (Core Automation Framework Enhancements) monorepo.
Features
CAFE-DESKTOP offers the following features:
- Window management: Supports interaction with desktop application windows, including opening, closing, and switching between windows.
- Element interaction: Provides methods to interact with desktop application elements, such as clicking, typing, and retrieving text.
- Assertions: Includes assertion methods specifically designed for desktop application testing, allowing for efficient validation of UI elements and behaviors.
- Data-driven testing: Supports data-driven testing approaches to execute tests with different data sets.
- Reporting: Integrates with CAFE's reporting capabilities to generate comprehensive test reports with screenshots and detailed logs.
Getting Started
Prerequisites
- Python 3.12 or later
- pip 24 or later (Python package manager)
Installation
-
Install CAFE-DESKTOP using pip:
pip install cafex-desktop
Usage
CAFE-DESKTOP provides a set of intuitive methods and classes to facilitate desktop application testing. Here's a basic example for desktop application testing:
from cafex_desktop import desktop_client_actions
# Create a desktop client actions object
desktop_actions = desktop_client_actions.DesktopClientActions()
# Launch a desktop application
desktop_actions.launch_application("C:\\Program Files\\ExampleApp\\ExampleApp.exe")
# Find an element and click on it
element = desktop_actions.get_desktop_element("name=SubmitButton")
desktop_actions.click(element)
# Validate the window title
assert desktop_actions.get_window_title() == "Success Window"
Metadata
Release files for cafex-desktop 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cafex_desktop-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for cafex_desktop-1.0.0-py3-none-any.whl |
Release files / cafex_desktop-1.0.0-py3-none-any.whl
| Download URL | cafex_desktop-1.0.0-py3-none-any.whl |
|---|---|
| Size | 28.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
da70bac47c6a5ab3cf93b92c0627fb98b4a1c077f0408d811591643972735777
|
|
BLAKE2b-256 checksum How to use checksums |
7b2759a79ca8b200a1d00d5e22eca7de8a8a82d5f98e19260dc9a43b2a13a0b7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.10
|
Security for cafex-desktop 1.0.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.