question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Message is being typed but not sent

See original GitHub issue

Description

Text just stays in the whatsapp web box and doesn’t get sent. Screenshot atttached. image

To Reproduce

Run the w.sendwhatmsg_instantly(“Phonenumber”,message)

Screenshots

Please find attached

Version Information

  • OS: Windows 10
  • Browser: Microsoft Edge, Google Chrome
  • Python: 3.10.0
  • PyWhatKit: 5.2

You can Check the PyWhatKit Version using

print(pywhatkit.__VERSION__)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:40 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
TomerVagenfeldcommented, Jan 26, 2022

I suggest using Selenium.WebDriver instead of relaying on the UI to open up. That way you can use Headless browser and automate messages without having the web page to visibly open.

2reactions
saukumar95commented, Jan 7, 2022

Hey @shadowfax-ng, thanks for reporting the bug. Here are a few things you can follow:

  1. Do not use your mouse or keyboard while the script is running.
  2. Open the folder where pywhatkit is installed. If you have installed it in a virtual environment it will be venv\Lib\site-packages\pywhatkit\core. Open the core.py file and edit lines 63 and 65. Increase the time of 7s to 9 or more.

Screenshot from 2021-11-21 02-35-22 .

This solution did not solve the issue. For the message to send i need to click the whatsapp sent message icon

We are trying to find a permanent solution to this problem. Thanks for bearing with us!

Why we used coordinates to click enter button to send the message?. Instead .can we try finding something tag tags or attributes using some xpath or similar in entire screen and then try to click on. Just a thought, Not sure will that work or not.

Read more comments on GitHub >

github_iconTop Results From Across the Web

how to recover a typed but unsent text message
If you closed the messaging app before sending it, it will be gone. There is no cache with the iOS messaging app.
Read more >
7 ways to fix an Android device that won't send text messages
7 ways to fix an Android device that won't send text messages · Restart your phone · Check for updates · Clear your...
Read more >
Why Are My Text Messages Not Being Delivered? - DialMyCalls
1. Invalid Numbers. This is the most common reason that text message delivery can fail. If a text message is sent to an...
Read more >
Fix problems sending, receiving or connecting to Messages
Fix problems sending or receiving messages · Make sure you have the most updated version of Messages. · If you have a SIM...
Read more >
10 Reasons Why Some Messages Don't Get Delivered
10 Reasons Why Some Messages Don't Get Delivered · 6) Local regulations restrict SMS text messages · 7) The number might be in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found