抓取生产工单,赚取发料异常

This commit is contained in:
hjq
2026-06-11 15:58:56 +08:00
parent 66eecd0daa
commit 5b19790037
40 changed files with 4942 additions and 54 deletions

View File

@@ -0,0 +1,19 @@
import sys
import time
from pathlib import Path
sys.path.insert(0, str(Path(__file__).parent))
from login import get_page
page = get_page(port=9222)
print("URL:", page.url)
ele = page.ele('text:生产工单发料异常检查报表')
if ele:
print("找到了报表:", ele.html)
else:
print("未找到报表,尝试在搜索框输入")
# 查找输入框,可能是 placeholder 为 "请输入报表名称" 等
inputs = page.eles('tag:input')
for i in inputs:
print(i.attr('placeholder'))