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

开始抢购自动点击时报错:stale element not found #13

Closed
matoung opened this issue Sep 22, 2023 · 0 comments
Closed

开始抢购自动点击时报错:stale element not found #13

matoung opened this issue Sep 22, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@matoung
Copy link

matoung commented Sep 22, 2023

2023-09-22 10:07:59.863120 距离抢购开始还剩:00 天 00 时 00 分 01 秒
Traceback (most recent call last):
File "/home/eric/hw_seckill/main.py", line 14, in
main()
File "/home/eric/hw_seckill/main.py", line 9, in main
huawei.start_process()
File "/home/eric/hw_seckill/huawei.py", line 39, in start_process
self.__start_buying()
File "/home/eric/hw_seckill/huawei.py", line 112, in __start_buying
button_element.click()
File "/home/eric/.local/lib/python3.10/site-packages/selenium/webdriver/remote/webelement.py", line 93, in click
self._execute(Command.CLICK_ELEMENT)
File "/home/eric/.local/lib/python3.10/site-packages/selenium/webdriver/remote/webelement.py", line 394, in _execute
return self._parent.execute(command, params)
File "/home/eric/.local/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 344, in execute
self.error_handler.check_response(response)
File "/home/eric/.local/lib/python3.10/site-packages/selenium/webdriver/remote/errorhandler.py", line 229, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.StaleElementReferenceException: Message: stale element reference: stale element not found
(Session info: chrome=117.0.5938.88); For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#stale-element-reference-exception
Stacktrace:
#0 0x55e316f156b3
#1 0x55e316beb1e7
#2 0x55e316bf013e
#3 0x55e316bf19c0
#4 0x55e316bf1a7c
#5 0x55e316c34454
#6 0x55e316c33489
#7 0x55e316c284f9
#8 0x55e316c540c2
#9 0x55e316c27f16
#10 0x55e316c5428e
#11 0x55e316c6d322
#12 0x55e316c53e93
#13 0x55e316c26934
#14 0x55e316c2771e
#15 0x55e316edacb8
#16 0x55e316edebf0
#17 0x55e316ee919c
#18 0x55e316edf808
#19 0x55e316eac27f
#20 0x55e316f03e88
#21 0x55e316f04059
#22 0x55e316f14843
#23 0x7f20e5e94b43

@ancoka ancoka self-assigned this Sep 25, 2023
@ancoka ancoka added the bug Something isn't working label Sep 25, 2023
ancoka added a commit that referenced this issue Sep 29, 2023
1. 修复时间倒计时索引溢出问题
2. 增加抢购等待判断
3. 增加提交订单
Closes #11 #12 #13 #14 #18
@ancoka ancoka closed this as completed Sep 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants