From 54e5c645b94db1c7d4b1816105e6aedb27c9df01 Mon Sep 17 00:00:00 2001 From: arsh939 <53557927+arsh939@users.noreply.github.com> Date: Mon, 11 Nov 2019 12:07:15 +0530 Subject: [PATCH] Updated Classname Updated the classname of message and send button in wbomb.py file --- wbomb.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/wbomb.py b/wbomb.py index a6e6a68..a42e22f 100644 --- a/wbomb.py +++ b/wbomb.py @@ -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() \ No newline at end of file +main()