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

有大佬说一下,进入购物车后,为什么出现这样的代码吗 #122

Open
yx134970 opened this issue Aug 1, 2024 · 0 comments

Comments

@yx134970
Copy link

yx134970 commented Aug 1, 2024

等待到点抢购...
抢购时间点将近,停止自动刷新,准备进入抢购阶段...

Exception in Tkinter callback
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/tkinter/__init__.py", line 1892, in __call__
    return self.func(*args)
  File "/Users/yangxin/test/taobao_seckill-master/main.py", line 40, in <lambda>
    b1 = Button(win, text = '开始', command = lambda: run_killer(txt, txt2))
  File "/Users/yangxin/test/taobao_seckill-master/main.py", line 14, in run_killer
    ChromeDrive(seckill_time = seckill_time, password = password).sec_kill()
  File "/Users/yangxin/test/taobao_seckill-master/seckill/seckill_taobao.py", line 133, in sec_kill
    if self.driver.find_element_by_id("J_SelectAll1"):
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 360, in find_element_by_id
    return self.find_element(by=By.ID, value=id_)
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 976, in find_element
    return self.execute(Command.FIND_ELEMENT, {
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
    self.error_handler.check_response(response)
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, 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="J_SelectAll1"]"}
  (Session info: chrome=127.0.6533.89)
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

1 participant