

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. click the reply link (on browser: it puts cursor on the contact_send_message)įor the library we are using the Page Pattern recommended by the selenium.get(hover) the reply icon (on the right-side of the message).click on the opened chat found with a new message notification icon.inspect available user from top-bottom for notifications (only on available browser screen view).Simon can detect new message(s), read them, analyse it and reply if needed. Get all opened chats, go into the chat, read the last 10 messages from your friend and reply to the most recent message.


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.
