Bruuuuuuce / PKUAutoSubmit

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

门户登陆不上去 #43

Open HandsomeAozai opened 2 years ago

HandsomeAozai commented 2 years ago

请问这是什么原因呢?门户老是登陆不上去 D:\PKUAutoSubmit-main>python main.py 环境检查通过 Driver Launched

读取到1份配置文件

||第1个学生备案|| 门户登陆中... Retrying... 门户登陆中... Retrying... 门户登陆中... Retrying... Traceback (most recent call last): File "D:\PKUAutoSubmit-main\func.py", line 38, in login 5).until(EC.visibility_of_element_located((By.ID, 'all'))) File "D:\Users\Aozai\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\support\wait.py", line 80, in until raise TimeoutException(message, screen, stacktrace) selenium.common.exceptions.TimeoutException: Message: Screenshot: available via screen

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "D:\PKUAutoSubmit-main\func.py", line 38, in login 5).until(EC.visibility_of_element_located((By.ID, 'all'))) File "D:\Users\Aozai\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\support\wait.py", line 80, in until raise TimeoutException(message, screen, stacktrace) selenium.common.exceptions.TimeoutException: Message: Screenshot: available via screen

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "D:\PKUAutoSubmit-main\func.py", line 38, in login 5).until(EC.visibility_of_element_located((By.ID, 'all'))) File "D:\Users\Aozai\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\support\wait.py", line 80, in until raise TimeoutException(message, screen, stacktrace) selenium.common.exceptions.TimeoutException: Message: Screenshot: available via screen

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "D:\PKUAutoSubmit-main\main.py", line 62, in go('config.ini') File "D:\PKUAutoSubmit-main\main.py", line 38, in go run(driver_pjs, userName, password, campus, reason, detail, destination, track, File "D:\PKUAutoSubmit-main\func.py", line 260, in run login(driver, userName, password) File "D:\PKUAutoSubmit-main\func.py", line 42, in login login(driver, userName, password, retry + 1) File "D:\PKUAutoSubmit-main\func.py", line 42, in login login(driver, userName, password, retry + 1) File "D:\PKUAutoSubmit-main\func.py", line 42, in login login(driver, userName, password, retry + 1) File "D:\PKUAutoSubmit-main\func.py", line 17, in login raise Exception('门户登录失败') Exception: 门户登录失败