web自动化开发及测试
Project description
pywebauto
基于selenium的自动化测试框架和Page Object (PO) 模型,内置工具快速进行Python Web UI 自动化测试和web自动化脚本开发
- 包含内置工具快速构建项目结构
- 对封装selenium进行二次封装
- cookie注入的封装和处理
- requests的简单封装
使用方式
pip install pywebauto
- 依赖的第三方库
pytest>=8.4.2
selenium>=4.36.0
包的架构
base_actions.py对应BaseActions类,基础行为封装
base_options.py对应BaseOptions类,基础选项封装
cookie_manager.py对应CookieManager类,cookies管理封装
无法实现的封装
在selenium中没有鼠标中键的操作,更准确的说是绝大多数现代浏览器都没有这个操作,对于类似于<a>标签实行鼠标中建实际上是进行了一次右击罢了。deepseek给的actions.click(element, button='middle').perform()这个方法是错的,旧版早就移除了。
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
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 pywebauto-1.0.1.tar.gz.
File metadata
- Download URL: pywebauto-1.0.1.tar.gz
- Upload date:
- Size: 12.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f339f0219bc7cb13a346530450998c885ca67a7312c456f01bda0ff852346020
|
|
| MD5 |
c6e4b890fb0f65631c4aa47e272cdff2
|
|
| BLAKE2b-256 |
453adb060e98de437958bc8c4addc171b023019e52a0e88b84f79e67c141e7f2
|
File details
Details for the file pywebauto-1.0.1-py3-none-any.whl.
File metadata
- Download URL: pywebauto-1.0.1-py3-none-any.whl
- Upload date:
- Size: 12.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4fe941b7a1c1817387e6f13efbc9a0b70a8257526e940497d6d89c9284cdb835
|
|
| MD5 |
0c7b6285cb2b98a403ce97c2ac42aeee
|
|
| BLAKE2b-256 |
dc2e2486d57ffb199b6aa1b74fc7d05234d3a651bd461c5326dbb88a4a3b8537
|