-
-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to disable open WhatsApp application #24
Comments
Yes can anyone fix this? I guess problem is with wa.me/ link as it is trying to open api.whatsapp.com |
I have the same problem |
Hi, I have the same problem. |
I have solved this problem. In the same Function same file, I (for now) hard coded the url
I will work more on to do this dynamically... |
Hi all, 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
|
Hi there I have solved Kalebu#24 In the above code, I left everything the same and created a second send_message calling it send_message1. In this I am not using find user with the suffix link as this causes the desktop WhatsApp to open, I rather browse to a number, and if the number does NOT exist I then handle this problem by testing for the Button and or Message text box. If Button, then the number does not exists...
This is to cater for Kalebu#24 making use of send_message1
Hi there I have solved Kalebu/alright#24 In the above code, I left everything the same and created a second send_message calling it send_message1. In this I am not using find user with the suffix link as this causes the desktop WhatsApp to open, I rather browse to a number, and if the number does NOT exist I then handle this problem by testing for the Button and or Message text box. If Button, then the number does not exists...
everytime 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
The text was updated successfully, but these errors were encountered: