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
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 Distribution
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 odc_playwright_utils-0.1.0.tar.gz.
File metadata
- Download URL: odc_playwright_utils-0.1.0.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.3rc1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9d7e3103572601d159312de1acfd0841b5b0397ef0cb42cf17b7f773c5e104fb
|
|
| MD5 |
6056871c604d1d7f9fcb613f29eb8029
|
|
| BLAKE2b-256 |
744e6054111b052170a7ae4ce1df1e034ec49847d5c51261ec5087e22d5a05e8
|
File details
Details for the file odc_playwright_utils-0.1.0-py3-none-any.whl.
File metadata
- Download URL: odc_playwright_utils-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.3rc1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ca1c8538ec0a11efd81b8801c9724134d3a27b8e5a8da7cebdeada16c5bef731
|
|
| MD5 |
897ed90256e2f56a181703f4199f280a
|
|
| BLAKE2b-256 |
87c68b771b88610d3d0f9e08a8a05caa8dc90ca773084adfbba464f3f86aa8dc
|