From c9b74c552ccc226018b3b3d128db0eb012d52272 Mon Sep 17 00:00:00 2001 From: Rishi Dutt Shukla Date: Tue, 15 Sep 2020 21:33:48 +0530 Subject: [PATCH] Fixed message getting filled in search box insted of msg_box --- wbomb.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/wbomb.py b/wbomb.py index ab914f0..fac67f1 100644 --- a/wbomb.py +++ b/wbomb.py @@ -1,4 +1,3 @@ - from selenium import webdriver import os from webdriver_manager.chrome import ChromeDriverManager #1st changer @@ -24,14 +23,14 @@ def main(): user.click() # The classname of message box may vary. - msg_box = driver.find_element_by_class_name('_13mgZ') + msg_box = driver.find_element_by_xpath('//*[@id="main"]/footer/div[1]/div[2]/div/div[2]') for i in range(count): msg_box.send_keys(msg) # The classname of send button may vary. - button = driver.find_element_by_class_name('_3M-N-') + button = driver.find_element_by_xpath('//*[@id="main"]/footer/div[1]/div[3]/button') button.click() print('Bombing Complete!!') banner() -main() +main() \ No newline at end of file