this is currently built only to send whatsapp messages;
The project is using selenium
to navigate through the web.whatsapp.com, with the help keyboard shortcuts automater can easily navigate through the whatsapp website.
listed below are the steps that needs to be taken to send a message:
- login to
whatsapp
( through QR code ) :- To make sure we don't have to login to the
whatsapp
we can use profiles; I am using firefox profiles; To create a new profile you can searchabout:profiles
and selectcreat a new profile
. - After setting up a new profile, you can replace the
root-directory
of thefirefoxprofile = webdriver.FirefoxProfile(root-directory)
- To make sure we don't have to login to the
- create a new chat :
CTRL+SHIFT+N
- You can use actions to emulate this key combination
actions.key_down(Keys.CONTROL).key_down(Keys.ALT).send_keys('n').key_up(Keys.ALT).key_up(Keys.CONTROL).perform()
- You can use actions to emulate this key combination
- type the contact name
- type the message
- press
ENTER
- close chat :
ESC