Skip to main content

A set of utility functions for Playwright-based UI automation

Project description

My ODC Playwright Utils

This package provides a set of utility functions for UI automation based on Playwright. It encapsulates common methods such as element interaction, waiting for conditions, and page navigation to simplify automated testing tasks.

Features

  • Wait for elements to be visible or clickable
  • Interact with input fields, dropdowns, and other web elements
  • Manage page navigation and URLs
  • Take screenshots, upload files, and more

Installation

pip install odc_playwright_utils

Dependencies

  • playwright==1.45.1

Usage

Here's an example of how to use the package:

from module.playwright_utils import PlaywrightUtils
from module.WebDriverManager import WebDriverManager

# Initialize the browser and page
page = WebDriverManager.get_page()

# Use PlaywrightUtils to interact with elements
utils = PlaywrightUtils(page)
utils.click("#submit-button")

Project details


Download files

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

Source Distribution

odc_playwright_utils-0.1.0.tar.gz (4.3 kB view hashes)

Uploaded Source

Built Distribution

odc_playwright_utils-0.1.0-py3-none-any.whl (4.8 kB view hashes)

Uploaded Python 3

Supported by

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