how to disable open WhatsApp application
See original GitHub issueeverytime i run the code (from the examples), a web browser (Chrome) opened and then ask me to open whatsapp application (https://api.whatsapp.com wants to open this application)
if I canceled, then the browser do nothing, otherwise the whatsapp application is opened and alright gave me error:
raise exception_class(message, screen, stacktrace) selenium.common.exceptions.ElementNotInteractableException: Message: element not interactable
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
How to Disable WhatsApp Without Deleting The App - Cashify
Step 1: Open the phone Settings and go to the apps. · Step 2: From various applications, find and select WhatsApp. · Step...
Read more >3 Ways to Disappear From WhatsApp Without Deleting The App
3. Force Stop WhatsApp · Navigate your phone settings. · Go to Apps. · Select WhatsApp and tap on Force Stop.
Read more >How to Disable WhatsApp Automatic Startup - HardReset.info
First, open Settings. Arrow pointing on the Settings App on device. Then, scroll down and find Manage apps. ... Next, find and open...
Read more >How to Enable or Disable WhatsApp from Opening at Startup
First, launch the WhatsApp application on your computer. Click the ellipsis icon (three horizontal dots) to the top left of the screen and ......
Read more >How to disappear from WhatsApp without deleting the app ...
1. Disable WhatsApp tune: 2. Disabling notifications in the form of WhatsApp icons or dots: 3. Disable notification light:
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi all, Solved it
The problem is that self.suffix_link = “https://wa.me/” is causing the desktop app to open, or rather causing the browser to ask if it should open the desktop app.
If you call web.open(f"https://web.whatsapp.com/send?phone={phone_no}&text={quote(message)}") this does NOT cause the browser to ask if it should open the desktop app
So I generated an additional send_message1 in init.py code file, I have tried to add many comments in the code so it should be clear
And then my Example code is reading a CSV file and sending WhatsApp messages to them one by one, In South Africa (+27) our mobile numbers is only 10 digits starting with a 0 e.g. 0790445672
I have solved this problem. The reason for this is the use of the
self.suffix_link = "https://wa.me/"
in init.py file with the use of themessenger.find_user('<NUMBER>')
From what I can see this ind_user only obtains a URL from WhatsApp that then is used. However, If you “Build” this URL your self then you do not need this functionIn the same Function same file, I (for now) hard coded the url
self.BASE_URL = "https://web.whatsapp.com/send?phone=<NUMBER>&text"
The rest I left the same, BUT I then only need to call this:I will work more on to do this dynamically…