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

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,18 @@
import sys
from pathlib import Path
sys.path.insert(0, str(Path(__file__).parent))
from login import get_page
page = get_page(port=9222)
tabs = page.get_tabs()
print("当前打开的标签页:")
for t in tabs:
print(t.url)
target_tab = page.get_tab(page.latest_tab)
print("\n当前活动标签页 URL:", target_tab.url)
# 打印一下当前的弹窗或按钮
print("包含'查询'的元素:")
for el in target_tab.eles('text:查询'):
print(el.html)