Name | odc-playwright-utils JSON |
Version |
0.1.0
JSON |
| download |
home_page | None |
Summary | A set of utility functions for Playwright-based UI automation |
upload_time | 2024-08-14 16:00:31 |
maintainer | None |
docs_url | None |
author | Your Name |
requires_python | >=3.6 |
license | None |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# 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
```bash
pip install odc_playwright_utils
```
## Dependencies
- `playwright==1.45.1`
## Usage
Here's an example of how to use the package:
```python
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")
Raw data
{
"_id": null,
"home_page": null,
"name": "odc-playwright-utils",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": null,
"keywords": null,
"author": "Your Name",
"author_email": "qym00725@163.com",
"download_url": "https://files.pythonhosted.org/packages/74/4e/6054111b052170a7ae4ce1df1e034ec49847d5c51261ec5087e22d5a05e8/odc_playwright_utils-0.1.0.tar.gz",
"platform": null,
"description": "# My ODC Playwright Utils\r\n\r\nThis 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.\r\n\r\n## Features\r\n\r\n- Wait for elements to be visible or clickable\r\n- Interact with input fields, dropdowns, and other web elements\r\n- Manage page navigation and URLs\r\n- Take screenshots, upload files, and more\r\n\r\n## Installation\r\n\r\n```bash\r\npip install odc_playwright_utils\r\n```\r\n\r\n## Dependencies\r\n\r\n- `playwright==1.45.1`\r\n\r\n## Usage\r\n\r\nHere's an example of how to use the package:\r\n```python\r\nfrom module.playwright_utils import PlaywrightUtils\r\nfrom module.WebDriverManager import WebDriverManager\r\n\r\n# Initialize the browser and page\r\npage = WebDriverManager.get_page()\r\n\r\n# Use PlaywrightUtils to interact with elements\r\nutils = PlaywrightUtils(page)\r\nutils.click(\"#submit-button\")\r\n",
"bugtrack_url": null,
"license": null,
"summary": "A set of utility functions for Playwright-based UI automation",
"version": "0.1.0",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "87c68b771b88610d3d0f9e08a8a05caa8dc90ca773084adfbba464f3f86aa8dc",
"md5": "897ed90256e2f56a181703f4199f280a",
"sha256": "ca1c8538ec0a11efd81b8801c9724134d3a27b8e5a8da7cebdeada16c5bef731"
},
"downloads": -1,
"filename": "odc_playwright_utils-0.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "897ed90256e2f56a181703f4199f280a",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 4784,
"upload_time": "2024-08-14T16:00:30",
"upload_time_iso_8601": "2024-08-14T16:00:30.623282Z",
"url": "https://files.pythonhosted.org/packages/87/c6/8b771b88610d3d0f9e08a8a05caa8dc90ca773084adfbba464f3f86aa8dc/odc_playwright_utils-0.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "744e6054111b052170a7ae4ce1df1e034ec49847d5c51261ec5087e22d5a05e8",
"md5": "6056871c604d1d7f9fcb613f29eb8029",
"sha256": "9d7e3103572601d159312de1acfd0841b5b0397ef0cb42cf17b7f773c5e104fb"
},
"downloads": -1,
"filename": "odc_playwright_utils-0.1.0.tar.gz",
"has_sig": false,
"md5_digest": "6056871c604d1d7f9fcb613f29eb8029",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 4324,
"upload_time": "2024-08-14T16:00:31",
"upload_time_iso_8601": "2024-08-14T16:00:31.812909Z",
"url": "https://files.pythonhosted.org/packages/74/4e/6054111b052170a7ae4ce1df1e034ec49847d5c51261ec5087e22d5a05e8/odc_playwright_utils-0.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-08-14 16:00:31",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "odc-playwright-utils"
}