Bruuuuuuce / PKUAutoSubmit

PKU一键出入校备案小工具
Apache License 2.0
176 stars 272 forks source link

Screenshot: available via screen解决方案 #13

Closed CasparSwift closed 3 years ago

CasparSwift commented 4 years ago

本人使用的时候也会时不时报错,和#12 一样的问题:

selenium.common.exceptions.TimeoutException: Message: Screenshot: available via screen

因此建议在go_to_application_outgo_to_application_in两个函数执行click的时候多试几次:

while 'editApplyInfo' not in driver.current_url:
    driver.find_element_by_class_name('el-card__body').click()
    time.sleep(0.5)
Bruuuuuuce commented 4 years ago

非常感谢,只是单纯增加尝试次数很可能还是触发找不到对象【?】错误,我已经在着手修改逻辑