Alkosik / Discord-Alt-Token-Generator

Alt-token generator for discord using Selenium (very slow)
1 stars 0 forks source link

IndexError: list index out of range #4

Open lee101570 opened 3 years ago

lee101570 commented 3 years ago

An unchanging error occurs during the subscription process.

Traceback (most recent call last):
  File "generator.py", line 420, in <module>
    account = current_bot.generate_token()
  File "generator.py", line 97, in generate_token
    account = self.register_account()
  File "generator.py", line 181, in register_account
    if driver.find_element_by_xpath("//input[@type='checkbox']"):
  File "C:\Users\lee10\AppData\Local\Programs\Python\Python37\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 394, in find_element_by_xpath
    return self.find_element(by=By.XPATH, value=xpath)
  File "C:\Users\lee10\AppData\Local\Programs\Python\Python37\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 978, in find_element
    'value': value})['value']
  File "C:\Users\lee10\AppData\Local\Programs\Python\Python37\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
    self.error_handler.check_response(response)
  File "C:\Users\lee10\AppData\Local\Programs\Python\Python37\lib\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":"xpath","selector":"//input[@type='checkbox']"}
  (Session info: chrome=91.0.4472.164)
Alkosik commented 3 years ago

I had no luck replicating this error. You can try re-downloading the whole repo and if the problem persists, please provide more information and screens shots of the chrome window during registration process.