Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

找不到password请问是为什么呢 #2

Open
LandAndLand opened this issue Jan 4, 2025 · 5 comments
Open

找不到password请问是为什么呢 #2

LandAndLand opened this issue Jan 4, 2025 · 5 comments

Comments

@LandAndLand
Copy link

Traceback (most recent call last):
File "/home/hls/houls/hitsz-web/hitsz_net.py", line 97, in
init()
File "/home/hls/houls/hitsz-web/hitsz_net.py", line 41, in init
pwd_input = driver.find_element(By.ID, 'password')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hls/anaconda3/lib/python3.12/site-packages/selenium/webdriver/remote/webdriver.py", line 1244, in find_element
return self.execute(Command.FIND_ELEMENT, {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hls/anaconda3/lib/python3.12/site-packages/selenium/webdriver/remote/webdriver.py", line 424, in execute
self.error_handler.check_response(response)
File "/home/hls/anaconda3/lib/python3.12/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":"[id="password"]"}
(Session info: headless chrome=96.0.4664.45)
Stacktrace:
#0 0x608689d38ee3
#1 0x608689806608
#2 0x60868983caa1
#3 0x60868983cc61
#4 0x60868986f714
#5 0x60868985a29d
#6 0x60868986d3bc
#7 0x60868985a163
#8 0x60868982fbfc
#9 0x608689830c05
#10 0x608689d6abaa
#11 0x608689d80651
#12 0x608689d6bb05
#13 0x608689d81a68
#14 0x608689d6005f
#15 0x608689d9c818
#16 0x608689d9c998
#17 0x608689db7eed
#18 0x715ee0294ac3

@seer8616
Copy link
Contributor

因为前阵子认证系统升级了

@siliconx
Copy link
Owner

可以用自己的电脑访问认证网页,看下新系统的认证秘密框长啥样。我已经毕业好多年了

@LandAndLand
Copy link
Author

可以用自己的电脑访问认证网页,看下新系统的认证秘密框长啥样。我已经毕业好多年了

好嘞 感谢

@LandAndLand
Copy link
Author

因为前阵子认证系统升级了

大佬你有修改的代码吗 可否共享一下 我修改了还是出错呢

@seer8616
Copy link
Contributor

seer8616 commented Feb 11, 2025

因为前阵子认证系统升级了

大佬你有修改的代码吗 可否共享一下 我修改了还是出错呢

https://github.com/seer8616/hitsz_net

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants