italoseara / whatsappy

A whatsapp api made with selenium in Python
MIT License
43 stars 8 forks source link

chat.send( Unable to locate element: {"method":"css selector","selector":"li[data-animate-dropdown-item="true"]:nth-child(4) #22

Open emobiapp opened 11 months ago

emobiapp commented 11 months ago

Hi, seems there where some changes at wsp web ui:

chat.send("Hello, John!") File "C:\whatsappy\whatsappy\chat\conversation.py", line 151, in send driver.find_element(By.CSS_SELECTOR, Selectors.INPUT_CONTACTS).click() File "C:\whatsappy\venv\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 738, in find_element return self.execute(Command.FIND_ELEMENT, {"using": by, "value": value})["value"] File "C:\whatsappy\venv\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 344, in execute self.error_handler.check_response(response) File "C:\whatsappy\venv\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 229, 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":"li[data-animate-dropdown-item="true"]:nth-child(4)"}

nice work congrats!