Python Script to Automate WhatsApp Messages with Selenium Step by Step Part 1
Вставка
- Опубліковано 8 лют 2025
- #Python #Selenium #Scripting #Testing #whatsapp
Hello guys in this video we are going to write a Python Script to automate the WhatsApp messages Using Selenium. Used for Automation Testing.
Note-: Forgot to tell in the video that you need to download the chrome driver version matching to your chrome browser version.
What is SELENIUM?
Selenium is a tool to test your web application. Here using Selenium with Python . You can do this in various ways, for instance
► Permit it to tap on buttons
► Enter content in structures
► Skim your site to check whether everything is "OK" and so on.
What is Selenium Webdriver?
SELENIUM WEB DRIVER is an open-source collection of APIs which is used for testing web applications. The Selenium Webdriver tool is used for automating web application testing to verify that it works as expected or not. It mainly supports browsers like Firefox, Chrome, Safari, and Internet Explorer. It also permits you to execute cross-browser testings.
1.) Download Link for Python
► www.python.org/
2.) Download Link for ChromeDriver.
► chromedriver.c...
All ChromeDriver Versions Download List.
► chromedriver.c...
ChromeDriver Documentation.
► chromedriver.c...
3.) Source Code at Github.
► github.com/Kam...
4.) Documentation On Selenium.
► www.selenium.d....
This video is about-:
python script to automate whatsapp message
automating whatsapp using python
send whatsapp message using python
whatsapp message with python
whatsapp message python script
how to send whatsapp message using python
python selenium send whatsapp message
use python to send whatsapp message
*Note-:* Forgot to tell in the video that you need to download the chrome *Driver* version matching to your chrome *Browser* version.
All Versions here => chromedriver.chromium.org/downloads
shitty
Hi, I'm not understanding line 33 what I have to put inside just exactly copy paste your code ? and your github code script 1 is changed from this video code
Nice
Thanks
Thanks for your helpful video
Please make a video to scrape WhatsApp group images
Waiting your help
After entering count = 10 it is printing only one time then it showing this - raise exception_class(message, screen, stacktrace) selenium.common.exceptions.nosuchelementexception: message: no such element: unable to locate element: {"method":"css selector","selector":"_2ujuu"} though it worked for only one time
Did you try the code I have linked with GitHub.
Also plz try watching the 2nd part some fixation might have been done their. plz try that once, if it fails , then shoot me an email with your code..
Sure i will try
hi, thanks for the helpful video. I tried running the code tho and it has shown me this error >> selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":"._2Ujuu"}
(Session info: chrome=87.0.4280.88)
if you could help me a bit it would be nice :)
Thank you, can you please brief when is it giving you this error ?
Sure. so... the program works (it access whatsapp web and it defines correctly the function) the problem is when i insert the name of the contact from the shell.
@@developerroom791 uh forgot to ping you :/ response is above
You'll have to note that this code only resmbles with the Chats page on whatsapp web.
1) if that name is present in your chat section other wise it will produce error.
2) Check if the name entered is correct.
3) Check if the code written is correct.
Try running my code from GitHub, and replace the IDs if whatsapp has changed it on it's website.
To access every name you'll have to modify the code, and got to your contacts section then send message from there.
@@developerroom791 me too bro, how to solve it , i done all correct
Thank you bro, but can you do the font size of your code bigger😅
sry fr that, that was an oops moment realized it later, taken care of that in the next video, couldn't do anything about it now.😅
Typeerror: 'module' is not callable.please solution
Unable to locate element: {"method":"css selector","selector":"._1U1xa"} getting this error
May be you have done a typo. As for now what i can see in your error is you having a dot before 1U1xa
"._1U1xa" will give error if this is what you are using.
"_1U1xa" Use this.
@@developerroom791 for me it is not "_1U1xa" but it is "_u2Juu"
Nameerror: name is not defined error occurred please solution
Sir, Is there any code to send it for any particular time
Like pywhatkit lib
Use pythonanywhere to schedule your script
👌👌👍👍
can ban whatsapp?
It messages only the first person in my chat not the name of the person I want only the top person in my chat
Nice video btw ❤️
Bro hi please reply me
Hi