BlueFisher/SHU-selfreport

一个看不懂的运行错误

Closed this issue · 1 comments

Traceback (most recent call last):
File "main.py", line 342, in
report_result = report_day(browser,
File "main.py", line 241, in report_day
messagebox = browser.find_element(By.CLASS_NAME, 'f-messagebox')
File "/opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 1248, in find_element
return self.execute(Command.FIND_ELEMENT, {
File "/opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 425, in execute
self.error_handler.check_response(response)
File "/opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages/selenium/webdriver/remote/errorhandler.py", line 247, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":".f-messagebox"}
(Session info: headless chrome=98.0.4758.102)

原因见 #67稍晚些会修复

已提pr #69 ,等待合并请求。也可尝试使用我在维护的项目 panghaibin/shuasr