Skip to main content

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

  1. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cafex_desktop-1.0.0-py3-none-any.whl (28.2 kB view details)

Uploaded Python 3

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

Hashes for cafex_desktop-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 da70bac47c6a5ab3cf93b92c0627fb98b4a1c077f0408d811591643972735777
MD5 5ecf40ac1b752065404e5f0b3ea7727c
BLAKE2b-256 7b2759a79ca8b200a1d00d5e22eca7de8a8a82d5f98e19260dc9a43b2a13a0b7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page