dvlpsh / Twitter-AutoPoster-Bot

A Twitter bot that spans within the comfort of your command-line/terminal :P
MIT License
5 stars 0 forks source link

I showing this error #3

Open JONWERED opened 4 years ago

JONWERED commented 4 years ago

I showing this error

Is there a way to solve this problem?

Traceback (most recent call last):
  File "C:\Users\homal\Desktop\Twitter-AutoPoster-Bot-master\twitbot.py", line 1
13, in login
    email_element = driver.find_element_by_xpath(email_xpath2)
  File "C:\Users\homal\AppData\Local\Programs\Python\Python38\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\homal\AppData\Local\Programs\Python\Python38\lib\site-packages\
selenium\webdriver\remote\webdriver.py", line 976, in find_element
    return self.execute(Command.FIND_ELEMENT, {
  File "C:\Users\homal\AppData\Local\Programs\Python\Python38\lib\site-packages\
selenium\webdriver\remote\webdriver.py", line 321, in execute
    self.error_handler.check_response(response)
  File "C:\Users\homal\AppData\Local\Programs\Python\Python38\lib\site-packages\
selenium\webdriver\remote\errorhandler.py", line 242, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: Unable to locate ele
ment: /html/body/div/div/div/div/main/div/div/form/div/div[1]/label/div[2]/div/i
nput
dvlpsh commented 2 years ago

Hi, you need to configure the xpath as per your browser.