抓取生产工单,赚取发料异常
This commit is contained in:
25
browser_login/enter_report2.py
Normal file
25
browser_login/enter_report2.py
Normal file
@@ -0,0 +1,25 @@
|
||||
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)
|
||||
|
||||
# 1. 选中该行
|
||||
ele = page.ele('text:生产工单发料异常检查报表')
|
||||
if ele:
|
||||
print("找到了报表,正在选中该行...")
|
||||
ele.parent('tag:tr').click()
|
||||
time.sleep(0.5)
|
||||
|
||||
# 2. 点击进入
|
||||
btn = page.ele('text=进入自定义报表')
|
||||
if btn:
|
||||
print("点击进入自定义报表...")
|
||||
btn.click()
|
||||
time.sleep(2)
|
||||
print("进入成功!")
|
||||
else:
|
||||
print("没找到 进入自定义报表 按钮")
|
||||
|
||||
Reference in New Issue
Block a user