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.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

pywebauto-1.0.2.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.2-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pywebauto-1.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 e3b922bdca4c8c5a04da4310ddfaf5bf53a7be7128f05560c286e25f2b69b7e7
MD5 643d5dedfc624630d05b1cb89af7b46d
BLAKE2b-256 1b1a0c33fb5529296c1a10f8ad654b0a7c77a7c0192fd6b041e1b5ddc2e7d6c2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pywebauto-1.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7618fde1b3417152f41517a7f9128830e8fabdb905a3fe34aa59941e02c6ec1b
MD5 44d582af753b042685e4a811ad719a58
BLAKE2b-256 522582885b1925a356200a609721027356cdf9097069f06ed357ad83e5656b51

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