抓取生产工单,赚取发料异常
This commit is contained in:
26
browser_login/click_report.py
Normal file
26
browser_login/click_report.py
Normal file
@@ -0,0 +1,26 @@
|
||||
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)
|
||||
|
||||
# Click the first one
|
||||
m1 = page.ele('text=自定义报表管理')
|
||||
print("Clicking:", m1.html)
|
||||
m1.click()
|
||||
time.sleep(1)
|
||||
|
||||
# Check what new menus appeared
|
||||
for m in page.eles('text:自定义报表'):
|
||||
print("Found after click:", m.html)
|
||||
if '自定义报表' in m.text:
|
||||
m.click()
|
||||
time.sleep(1)
|
||||
|
||||
for m in page.eles('text:自定义报表'):
|
||||
print("Found after second click:", m.html)
|
||||
if m.text == '自定义报表':
|
||||
m.click()
|
||||
|
||||
Reference in New Issue
Block a user