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

View File

@ -21,14 +21,16 @@ def main():
user = driver.find_element_by_xpath('//span[@title = "{}"]'.format(name)) user = driver.find_element_by_xpath('//span[@title = "{}"]'.format(name))
user.click() 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): for i in range(count):
msg_box.send_keys(msg) 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() button.click()
print('Bombing Complete!!') print('Bombing Complete!!')
banner() banner()
main() main()