

pane_page = PanePage ( driver ) # get all chats opened_chats = pane_page. # IT WONT work if you are looking for a contact # you have never started a conversation. Get all opened chats # opened chats are the one chats or conversations # you already have in your whatsapp. maximize_window () # Login # and uncheck the remember check box # (Get your phone ready to read the QR code) login_page = LoginPage ( driver ) login_page.

quit () Get all opened chats, go into the chat, read the last 10 messages from your friend and reply to the most recent message import time from selenium import webdriver from import LoginPage from import ChatPage from import PanePage from import HeaderPage # Creating the driver (browser) driver = webdriver. Logout header_page = HeaderPage ( driver ) header_page. is_pane_page_available () # chat is only available after you open one base_page. # we don't need to load the pages as whatsapp # web works as one-page web app base_page = BasePage ( driver ) base_page. The base page is inherited by all pages # and here you can check whether any # page is available on the screen of # the browser. Login # and uncheck the remember check box # (Get your phone ready to read the QR code) login_page = LoginPage ( driver ) login_page. Login into whatsapp web, check you are logged in & logout import time from selenium import webdriver from import LoginPage from import HeaderPage from simon.pages import BasePage # Creating the driver (browser) driver = webdriver.


Login into whatsapp web, check you are logged in & logout.Replying to a specific (making a reference to the message you are replying to) message.To automate the functionalities a user normally performs when using whatsapp as a chat app. To connect their phone with whatsapp web service and Project consists to allow a user, with whatsapp installed in their phone, Simon, a Python Library for WhatsApp Web Automationīrowser automation for WhatsApp Web service with Python & Selenium.
