UI Library
Project description
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"
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cafex_desktop-1.0.0-py3-none-any.whl.
File metadata
- Download URL: cafex_desktop-1.0.0-py3-none-any.whl
- Upload date:
- Size: 28.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
da70bac47c6a5ab3cf93b92c0627fb98b4a1c077f0408d811591643972735777
|
|
| MD5 |
5ecf40ac1b752065404e5f0b3ea7727c
|
|
| BLAKE2b-256 |
7b2759a79ca8b200a1d00d5e22eca7de8a8a82d5f98e19260dc9a43b2a13a0b7
|