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