Skip to content

Commit 64d986d

Browse files
committed
whatsapp
1 parent 43b20a6 commit 64d986d

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

readme.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@
3636

3737
## whatsapp
3838

39-
### This program sends multiple messages to a user/group using python and selenium
39+
### This program sends multiple messages to a user/group using python, selenium and chrome
40+
41+
*If you use firefox you don't need to download chromedriver*
4042

4143
[Get selenium](https://pypi.org/project/selenium/)
4244

whatsapp.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@
1111
input('Enter anything after scanning QR code')
1212

1313
user = driver.find_element_by_xpath('//span[@title = "{}"]'.format(name))
14+
#this is to select the name of the user/group
1415
user.click()
1516

16-
msg_box = driver.find_element_by_class_name('_3uMse')#this is to select the type message box
17+
msg_box = driver.find_element_by_class_name('_3uMse')#this is to select the "type message" box
1718

1819
for i in range(count):
1920
msg_box.send_keys(msg)
20-
button = driver.find_element_by_class_name('_1U1xa')#this is to click the send button
21+
button = driver.find_element_by_class_name('_1U1xa')#this is to click the "send" button
2122
button.click()

0 commit comments

Comments
 (0)