Skip to main content

web自动化开发及测试

Project description

pywebauto

基于selenium的自动化测试框架和Page Object (PO) 模型,内置工具快速进行Python Web UI 自动化测试和web自动化脚本开发

  • 包含内置工具快速构建项目结构
  • 对封装selenium进行二次封装
  • cookie注入的封装和处理
  • requests的简单封装

使用方式

pip install pywebauto
  • 依赖的第三方库
pytest>=8.3.5
selenium>=4.27.1

包的架构

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

pywebauto-1.0.3.tar.gz (12.4 kB view details)

Uploaded Source

Built Distribution

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

pywebauto-1.0.3-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

Details for the file pywebauto-1.0.3.tar.gz.

File metadata

  • Download URL: pywebauto-1.0.3.tar.gz
  • Upload date:
  • Size: 12.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.0

File hashes

Hashes for pywebauto-1.0.3.tar.gz
Algorithm Hash digest
SHA256 8d3525fb7700c435b344ed7914be6a54de880866f43af28b0df36ce1a06bac4f
MD5 56d27ea2d134127e104ce3f46214bdf9
BLAKE2b-256 a435bd333d1dd1dc11ef3339a2cf5e1a7f25f654cd8f077f5f78c470738f5784

See more details on using hashes here.

File details

Details for the file pywebauto-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: pywebauto-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 12.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.0

File hashes

Hashes for pywebauto-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 da63cd6317654b88fc837c46cf7de4efef7e98e57dc35d2d20f5f10bc58519fa
MD5 dffb4a43bd16a41201d7844a35f8f9e0
BLAKE2b-256 69c31df4683b77c51696eae79541d4fdfa1e04a06a695b0b3f6aa864ac7a7592

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