Error Msg "selenium.common.exceptions.TimeoutException: Message:"
See original GitHub issueHi …
i can`t execute the script and it show error msg “selenium.common.exceptions.TimeoutException: Message:”
My Simple script ( To send Message ) :
from whatsapp import WhatsApp whatsapp = WhatsApp(100, session="mysession") print(whatsapp.send_message("Same",":heart: Good!"))
first cmd output : https://b.top4top.io/p_1887puw2p1.png
its open whatsapp web page but after a while it show me error : https://c.top4top.io/p_18876h5wc2.png
DevTools listening on ws://127.0.0.1:52819/devtools/browser/eb05022d-aacf-45aa-8 7bd-a822c0d99afa [0302/121025.282:ERROR:gl_surface_egl.cc(773)] EGL Driver message (Error) eglQue ryDeviceAttribEXT: Bad attribute. Traceback (most recent call last): File "XXXXXXXXXXXXXXX\Simple-Yet-Hackable-WhatsApp-api-master\test.py" , line 2, in <module> whatsapp = WhatsApp(50, session="mysession") File "XXXXXXXXXXXXXXX\Simple-Yet-Hackable-WhatsApp-api-master\whatsapp .py", line 61, in __init__ WhatsAppElements.search)) File "XXXXXXXXXXXXXXX\Python\Python37-32\lib\site-packa ges\selenium\webdriver\support\wait.py", line 80, in until raise TimeoutException(message, screen, stacktrace) selenium.common.exceptions.TimeoutException: Message:
with no more actions on the whatsapp web page, So please help me to solve this issues !
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (3 by maintainers)
Hello, I’m new using GitHub. I’ve faced the same issue these last days. I found a solution in other repo using selenium with whatsapp web (can’t find it now).
In the
whatsapp.py
file, onsend_message
definition (and others that can need to be solved) changesearch = self.browser.find_element(*WhatsAppElements.search)
Bysearch = self.browser.find_element_by_xpath('//*[@id="side"]/div[1]/div/label/div/div[2]')
Furthermore, it is needed to change
._1awRl
in line 36 by the CSS element that is being used now (._3LX7r
).Hope I’ve been helpful
I appreciate your hard work for supporting this script
I suggest to add function to Send Anonymous picture using this code :
# Send Anonymous Picture