Fantaso / whatsapp-web

Simon is a Python library that helps made easy the browser automation for WhatsApp Web service
Other
93 stars 29 forks source link

test isn't working #1

Open matanka opened 4 years ago

matanka commented 4 years ago

Hey,

I'm having trouble running this line: msgs = chat_page.messages.newest(10, filterby='contact')

I'm getting this error: Traceback (most recent call last): File "", line 1, in File "C:...\Envs\whatsapp\lib\site-packages\simon\chat\elements.py", line 126, in newest msgs = self.all(filterby) File "C:...\Envs\whatsapp\lib\site-packages\simon\chat\elements.py", line 111, in all order_by_oldest = [self.child_class(e, self.driver) for e in self.__find_elements(locator)] File "C:...\Envs\whatsapp\lib\site-packages\simon\chat\elements.py", line 153, in __find_elements lambda driver: self.driver.find_elements(*locator)) File "C:...\Envs\whatsapp\lib\site-packages\selenium\webdriver\support\wait.py", line 77, in until time.sleep(self._poll) KeyboardInterrupt

it's just stuck and nothing seems to work.

plus after few seconds when trying to run this line: opened_chats = pane_page.opened_chats

I get this error: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))