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

Bot doesnt start, only shows messages in command prompt #12

Open
PiggyAwesome opened this issue Apr 8, 2021 · 0 comments
Open

Bot doesnt start, only shows messages in command prompt #12

PiggyAwesome opened this issue Apr 8, 2021 · 0 comments

Comments

@PiggyAwesome
Copy link

When i run commands nothing happen. They just show up in the console log.

also
thsi happens when i google something

('/google yes', '18-56-58')
Command args: ['google', 'yes']
Traceback (most recent call last):
  File "c:\Users\Gerrid\Documents\whatsapp-assistant-bot\whatsapp_assistant_bot.py", line 339, in <module>
    Bot()
  File "c:\Users\Gerrid\Documents\whatsapp-assistant-bot\whatsapp_assistant_bot.py", line 48, in __init__
    self.init_bot()
  File "c:\Users\Gerrid\Documents\whatsapp-assistant-bot\whatsapp_assistant_bot.py", line 52, in init_bot
    self.poll_chat()
  File "c:\Users\Gerrid\Documents\whatsapp-assistant-bot\whatsapp_assistant_bot.py", line 69, in poll_chat
    self.bot_options(action=last_msg)
  File "c:\Users\Gerrid\Documents\whatsapp-assistant-bot\whatsapp_assistant_bot.py", line 91, in bot_options
    g_search.search(qry=query)
  File "c:\Users\Gerrid\Documents\whatsapp-assistant-bot\whatsapp_assistant_bot.py", line 187, in search
    send_message("Searching Google for: '{qry}'".format(qry=qry))
  File "c:\Users\Gerrid\Documents\whatsapp-assistant-bot\whatsapp_assistant_bot.py", line 325, in send_message
    whatsapp_msg = driver.find_element_by_class_name(MESSAGE_BUBBLE_CLASS_NAME)
  File "C:\Users\Gerrid\AppData\Local\Programs\Python\Python39\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 564, in find_element_by_class_name
    return self.find_element(by=By.CLASS_NAME, value=name)
  File "C:\Users\Gerrid\AppData\Local\Programs\Python\Python39\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 976, in find_element
    return self.execute(Command.FIND_ELEMENT, {
  File "C:\Users\Gerrid\AppData\Local\Programs\Python\Python39\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
    self.error_handler.check_response(response)
  File "C:\Users\Gerrid\AppData\Local\Programs\Python\Python39\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":"css selector","selector":"._13mgZ"}
  (Session info: chrome=89.0.4389.114)
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