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

КОМЕНТАРІ • 31

  • @developerroom791
    @developerroom791  4 роки тому +1

    *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

  • @nafayspeaks
    @nafayspeaks 2 роки тому

    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

  • @laveshpandey9614
    @laveshpandey9614 4 роки тому +3

    Nice

  • @yasserahmed7440
    @yasserahmed7440 2 роки тому

    Thanks for your helpful video
    Please make a video to scrape WhatsApp group images
    Waiting your help

  • @lakshyarajput1023
    @lakshyarajput1023 4 роки тому +2

    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

    • @developerroom791
      @developerroom791  4 роки тому

      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..

    • @lakshyarajput1023
      @lakshyarajput1023 4 роки тому +1

      Sure i will try

  • @baronc
    @baronc 4 роки тому +3

    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 :)

    • @developerroom791
      @developerroom791  4 роки тому

      Thank you, can you please brief when is it giving you this error ?

    • @baronc
      @baronc 4 роки тому +1

      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.

    • @baronc
      @baronc 4 роки тому +1

      @@developerroom791 uh forgot to ping you :/ response is above

    • @developerroom791
      @developerroom791  4 роки тому

      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.

    • @kamalnath4055
      @kamalnath4055 3 роки тому

      @@developerroom791 me too bro, how to solve it , i done all correct

  • @erictovbin4200
    @erictovbin4200 4 роки тому +2

    Thank you bro, but can you do the font size of your code bigger😅

    • @developerroom791
      @developerroom791  4 роки тому

      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.😅

  • @arthyshweetha448
    @arthyshweetha448 3 роки тому

    Typeerror: 'module' is not callable.please solution

  • @souvikghosh1735
    @souvikghosh1735 4 роки тому +1

    Unable to locate element: {"method":"css selector","selector":"._1U1xa"} getting this error

    • @developerroom791
      @developerroom791  4 роки тому +1

      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.

    • @maindepth8830
      @maindepth8830 4 роки тому

      @@developerroom791 for me it is not "_1U1xa" but it is "_u2Juu"

  • @arthyshweetha448
    @arthyshweetha448 3 роки тому

    Nameerror: name is not defined error occurred please solution

  • @navodayavarmak1356
    @navodayavarmak1356 3 роки тому

    Sir, Is there any code to send it for any particular time
    Like pywhatkit lib

    • @priyanshu6173
      @priyanshu6173 2 роки тому

      Use pythonanywhere to schedule your script

  • @devgupta2897
    @devgupta2897 4 роки тому +1

    👌👌👍👍

  • @francescospark9974
    @francescospark9974 2 роки тому

    can ban whatsapp?

  • @oumbestagoli4205
    @oumbestagoli4205 4 роки тому +1

    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 ❤️

  • @kamalnath4055
    @kamalnath4055 3 роки тому +1

    Bro hi please reply me