Playwright 交互式调试工具
Project description
mp-repl
Playwright 交互式调试工具 - 提升自动化脚本开发效率
安装
pip install mp-repl
playwright install chromium
快速开始
# 启动 REPL
pw-repl
# 连接浏览器
pw> connect
# 页面操作
pw> go https://example.com
pw> btn 'Submit'
pw> fill '#email' 'test@example.com'
# 执行 Playwright 代码
pw> page.locator('button').click()
# 加载并执行脚本
pw> run my_script.py
pw> my_function()
功能
- 命令式操作:
btn,click,fill,go等快捷命令 - Playwright 直接执行:
page.xxx,browser.xxx - 脚本执行:加载 Python 脚本,函数可直接调用
- 多连接管理:同时连接多个浏览器
- 会话管理:集成 s-mgr 账号切换
文档
License
MIT
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
mp_repl-0.1.1.tar.gz
(5.8 kB
view details)
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 mp_repl-0.1.1.tar.gz.
File metadata
- Download URL: mp_repl-0.1.1.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a030fd2df895edcb98f03d84fa3db4de24f4410dfb5a82c999d6b9b0e3a5f6d8
|
|
| MD5 |
101c24baf4b80fbb6f6c68ae2c4a244e
|
|
| BLAKE2b-256 |
35a0b170dea2e566173b43f5bd742761e99f2c653576604da0b733265e67e09d
|
File details
Details for the file mp_repl-0.1.1-py3-none-any.whl.
File metadata
- Download URL: mp_repl-0.1.1-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b65a2a7e70afbe7c7ff786168647d3884d7412c4f75d5e14cef67e93158aba39
|
|
| MD5 |
348b29ec3f2b22837f6761a19210ea5a
|
|
| BLAKE2b-256 |
7a862b79b3cd2080410ca51e821e6c5483c8fa74d3537688901ddd910dbe0fd3
|