mukulhase / WebWhatsapp-Wrapper

An API for sending and receiving messages over web.whatsapp [Working as of 18th May 2018]
https://webwhatsapi.readthedocs.io/en/latest/
MIT License
2.02k stars 796 forks source link

selenium.common.exceptions.TimeoutException: Message: #894

Open arvind1kumar1 opened 4 years ago

arvind1kumar1 commented 4 years ago

Please help me shortout this problem. My chatbot was running somedays before fine. But now it gives a error

Waiting for QR Traceback (most recent call last): File "whatsapp_run.py", line 76, in driver.wait_for_login() File "D:\projects\bicdo_whatsapp\webwhatsapi__init__.py", line 276, in wait_for_login EC.visibility_of_element_located((By.CSS_SELECTOR, self._SELECTORS['mainPage'])) File "C:\ProgramData\Anaconda3\lib\site-packages\selenium\webdriver\support\wait.py", line 80, in until raise TimeoutException(message, screen, stacktrace) selenium.common.exceptions.TimeoutException: Message:

darkash commented 4 years ago

there's css changes on whatsapp web. Fix: https://github.com/mukulhase/WebWhatsapp-Wrapper/issues/889#issuecomment-639008819

arvind1kumar1 commented 4 years ago

there's css changes on whatsapp web. Fix: #889 (comment) thanks, but how to fix it

darkash commented 4 years ago

there's css changes on whatsapp web. Fix: #889 (comment) thanks, but how to fix it

Need to build your own package, at least until a PR comes out and it got merged to master

arvind1kumar1 commented 4 years ago

thanks jonagko 'firstrun': "#wrapper", 'qrCode': "canvas[aria-label=\"Scan me!\"]", 'qrCodePlain': "div[data-ref]", 'mainPage': ".app.two", 'mainPage': ".two", 'chatList': ".infinite-list-viewport", 'messageList': "#main > div > div:nth-child(1) > div > div.message-list", 'unreadMessageBar': "#main > div > div:nth-child(1) > div > div.message-list > div.msg-unread",

but it gives a error selenium.common.exceptions.JavascriptException: Message: TypeError: window.Store.Msg is undefined

darkash commented 4 years ago

thanks jonagko 'firstrun': "#wrapper", 'qrCode': "canvas[aria-label="Scan me!"]", 'qrCodePlain': "div[data-ref]", 'mainPage': ".app.two", 'mainPage': ".two", 'chatList': ".infinite-list-viewport", 'messageList': "#main > div > div:nth-child(1) > div > div.message-list", 'unreadMessageBar': "#main > div > div:nth-child(1) > div > div.message-list > div.msg-unread",

but it gives a error selenium.common.exceptions.JavascriptException: Message: TypeError: window.Store.Msg is undefined

you can use the fix here https://github.com/mukulhase/WebWhatsapp-Wrapper/issues/893#issuecomment-639242944

fyi I just inherit the class and monkey patch the broken stuffs on the child class, and sideload a js which you can add some function or redefine it to the existing namespace

bsallesp commented 3 years ago

i got this:

Waiting for QR Traceback (most recent call last): File "py.py", line 72, in driver.wait_for_login() File "/home/admin/.local/lib/python3.8/site-packages/webwhatsapi/init.py", line 250, in wait_for_login WebDriverWait(self.driver, timeout).until( File "/home/admin/.local/lib/python3.8/site-packages/selenium/webdriver/support/wait.py", line 80, in until raise TimeoutException(message, screen, stacktrace) selenium.common.exceptions.TimeoutException: Message: