提示文案优化

This commit is contained in:
fuzhongyun 2026-03-11 16:16:40 +08:00
parent 38e49c42c2
commit 1e7e85a8d1
2 changed files with 4 additions and 4 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 722 KiB

View File

@ -16,8 +16,8 @@ def process_details(page):
detail_selector = "button.el-button--text:has-text('详情')"
try:
# 等待按钮出现
page.wait_for_selector(".el-table__row", timeout=10000)
# 等待按钮出现 - 这里也是人机交互timeout=0 死等
page.wait_for_selector(detail_selector, timeout=0)
# 获取所有匹配的按钮
# 注意ElementUI 表格若有固定列会渲染双份表格一份header一份body或者一份固定列一份滚动列
@ -150,7 +150,7 @@ def run():
print("[状态] 已在目标页面")
# 2. 选中“待发货”
print("[操作] 正在筛选: 订单类型 -> 待发货")
print("[操作] 正在点击“待发货”标签页")
try:
# 定位 Tab
tab_selector = ".el-tabs__item:has-text('待发货')"
@ -162,7 +162,7 @@ def run():
print(" [状态] “待发货”标签页已经是选中状态")
else:
tab.click()
print(" -> 已点击“待发货”标签页")
print("[状态] 已点击“待发货”标签页")
time.sleep(1) # 等待 Tab 切换动画
else:
print(" [警告] 未找到“待发货”标签页,跳过筛选")