抓取生产工单,赚取发料异常
This commit is contained in:
16
browser_login/test_date.py
Normal file
16
browser_login/test_date.py
Normal file
@@ -0,0 +1,16 @@
|
||||
import sys, time
|
||||
from pathlib import Path
|
||||
sys.path.insert(0, str(Path(__file__).parent))
|
||||
from login import get_page
|
||||
|
||||
page = get_page(port=9222)
|
||||
target_tab = page.get_tab(page.latest_tab)
|
||||
|
||||
btn = target_tab.ele('#onSearch') or target_tab.ele('text=查询')
|
||||
if btn:
|
||||
print("Found btn:", btn.html)
|
||||
try:
|
||||
btn.click(by_js=True)
|
||||
print("Click by_js success")
|
||||
except Exception as e:
|
||||
print("Error click:", e)
|
||||
Reference in New Issue
Block a user