xiazhongyv / PKUAutoSubmit_online

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

element is not attached to the page document #29

Closed geniusadventurer closed 2 years ago

geniusadventurer commented 2 years ago

Traceback (most recent call last): File "main.py", line 314, in destination, track, habitation, district, street, wechat, argconf.SENDKEY) File "main.py", line 282, in run exception_printer(e) File "main.py", line 260, in exception_printer raise e File "main.py", line 270, in run go_to_application_out(driver) File "main.py", line 80, in go_to_application_out driver.find_element_by_class_name('el-card__body').click() File "/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/selenium/webdriver/remote/webelement.py", line 81, in click self._execute(Command.CLICK_ELEMENT) File "/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/selenium/webdriver/remote/webelement.py", line 710, in _execute return self._parent.execute(command, params) File "/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/selenium/webdriver/remote/webdriver.py", line 425, in execute self.error_handler.check_response(response) File "/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/selenium/webdriver/remote/errorhandler.py", line 247, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.StaleElementReferenceException: Message: stale element reference: element is not attached to the page document (Session info: headless chrome=98.0.4758.102)