18 lines
353 B
Python
18 lines
353 B
Python
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)
|
|
|
|
for m in page.eles('text:自定义报表'):
|
|
if m.text == '自定义报表':
|
|
print("Clicking:", m.html)
|
|
m.click()
|
|
time.sleep(2)
|
|
break
|
|
|
|
print("当前 URL:", page.url)
|
|
|