import time
import ddddocr
from selenium import webdriver
wb = webdriver.Chrome()
wb.get('
http://www.heidouyun.cn/opermonitor/')
wb.maximize_window()
wb.implicitly_wait(30)
# admin是用户名
wb.find_element('id','staffCode').send_keys('admin')
# 123456是密码
wb.find_element('id','staffPwd').send_keys('123456')
time.sleep(1)
png = wb.find_element('id','rankImage').screenshot_as_png
vcode = ddddocr.DdddOcr().classification(png)
print(vcode)
wb.find_element('id','rank').send_keys(vcode)
wb.find_element('id','loginBtn').click()
time.sleep(10)