xiazhongyv / PKUAutoSubmit_online

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

feat: 增加昌平区报备的支持 #23

Closed hrz6976 closed 2 years ago

hrz6976 commented 2 years ago

相关的Issue: #4

  1. 改善报错信息:现在发生错误时,会显示如下的报错信息
    报备发生错误:
    请填写正确的中国大陆手机号
    请检查您的配置是否正确,或者稍后重试
    如果错误依然存在,请在这里汇报Bug:https://github.com/xiazhongyv/PKUAutoSubmit_online/issues
    错误详细信息:
    Traceback (most recent call last):
    File "/Users/Apple/Documents/GitHub/PKUAutoSubmit_online/func.py", line 328, in run
      fill_out(driver, campus, mail_address, phone_number, reason, detail, destination, track)
    File "/Users/Apple/Documents/GitHub/PKUAutoSubmit_online/func.py", line 218, in fill_out
      submit(driver)
    File "/Users/Apple/Documents/GitHub/PKUAutoSubmit_online/func.py", line 174, in submit
      WebDriverWait(driver, 10).until(
    File "/Users/Apple/opt/anaconda3/lib/python3.9/site-packages/selenium/webdriver/support/wait.py", line 89, in until
      raise TimeoutException(message, screen, stacktrace)
    selenium.common.exceptions.TimeoutException: Message: 
  2. 增加对昌平区报备的支持 参考StackOverflow,支持带滚动条的菜单的选择