xiazhongyv / PKUAutoSubmit_online

萌新友好的,无需下载文件与配环境的,基于Github Actions的,P大学生出入校自动报备程序
Apache License 2.0
178 stars 368 forks source link

是否有可能retry if raising exceptions? #28

Closed yd-yin closed 2 years ago

yd-yin commented 2 years ago

几次报错信息如下:

element click intercepted: Element <div data-v-28db1654="" class="el-select" style="width: 100%;">...</div> is not clickable at point (392, 470). Other element would receive the click: <li data-v-28db1654="" class="el-select-dropdown__item">...</li>
element click intercepted: Element <span class="el-radio__inner"></span> is not clickable at point (71, 439). Other element would receive the click: <li data-v-28db1654="" class="el-select-dropdown__item">...</li>
element click intercepted: Element <span>...</span> is not clickable at point (80, 382). Other element would receive the click: <span>...</span>

我猜是因为网页反应不过来,click了不能click的部分,于是增加了sleep的时间

但是新的报错信息如下:

stale element reference: element is not attached to the page document

考虑到报备系统不一定那么迅速和稳定,一般的问题多运行几次就可以了,不知道是否有可能考虑retry (several times) until success?

xiazhongyv commented 2 years ago

已添加该功能,目前如果失败会重试,尝试五次均失败后才会报错。