Updated Classname

Updated the classname of message and send button in wbomb.py file
This commit is contained in:
arsh939 2019-11-11 12:07:15 +05:30 committed by GitHub
parent 8ff5e68ad7
commit 54e5c645b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 4 deletions

View File

@ -21,14 +21,16 @@ def main():
user = driver.find_element_by_xpath('//span[@title = "{}"]'.format(name))
user.click()
msg_box = driver.find_element_by_class_name('_2bXVy')
# The classname of message box may vary.
msg_box = driver.find_element_by_class_name('_13mgZ')
for i in range(count):
msg_box.send_keys(msg)
button = driver.find_element_by_class_name('_2lkdt')
# The classname of send button may vary.
button = driver.find_element_by_class_name('_3M-N-')
button.click()
print('Bombing Complete!!')
banner()
main()
main()