docs: align docs with post-restructure package layout
Update README tree (compare.py + domain.py), CLAUDE.md module refs, and the three docs/ deep-dives to the current inbound_verify package (compare/domain/sites/cli). Correct the statistics review report's methodology to the current 口径 (应到=交接件数, 实到=直接数单号去重, 未到=应到−实到) per compare.py docstring; remove ghost-script references in the CDP guide. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -80,7 +80,7 @@ Protocol error (Browser.setDownloadBehavior): Browser context management is not
|
||||
```
|
||||
|
||||
- `type == "page"` 的才是普通页面(另有 `background_page`、`service_worker`、`webview` 等,按需过滤)。
|
||||
- **`id` / `webSocketDebuggerUrl` 每次启动都会变**,所以一定要动态发现,**绝不能硬编码**(早期 `site_anneng.py` 硬编码 WS URL,重启就失效)。
|
||||
- **`id` / `webSocketDebuggerUrl` 每次启动都会变**,所以一定要动态发现,**绝不能硬编码**(早期 `sites/anneng.py` 硬编码 WS URL,重启就失效)。
|
||||
- 用 `title` 或 `url` 来挑选你真正要操作的那一页。
|
||||
|
||||
### 3.2 CDP 消息往返
|
||||
@@ -408,8 +408,8 @@ def wait_for(self, selector, timeout=10, interval=0.3):
|
||||
|
||||
- 所有 Python 脚本在项目 `.venv` 内运行(`python -m venv .venv`,激活后安装依赖)。
|
||||
- 依赖:`websocket-client`(已装)、`black`(格式化,已装)、可选 `pychrome`。
|
||||
- 相关脚本:`_probe_anneng.py`(探查)、`site_anneng.py`(菜单导航)、`download_clean.py`(免对话框下载)。
|
||||
- 运行:`.venv/Scripts/python.exe download_clean.py`
|
||||
- 相关脚本:`inbound_verify/sites/anneng.py`(菜单导航 + CDP 驱动;早期探查脚本 `_probe_anneng.py`、免对话框下载脚本 `download_clean.py` 已并入此模块,不再单独存在)。
|
||||
- 运行:`.venv/Scripts/python.exe -m inbound_verify.sites.anneng expected|actual`
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user