diff --git a/automator.py b/automator.py index 21fa14100707..0f156b9f54d1 100644 --- a/automator.py +++ b/automator.py @@ -74,7 +74,7 @@ class style(): if not sent: driver.get(url) try: - click_btn = WebDriverWait(driver, delay).until(EC.element_to_be_clickable((By.XPATH, "//button[@class='_4sWnG']"))) + click_btn = WebDriverWait(driver, delay).until(EC.element_to_be_clickable((By.XPATH, "//button[@data-testid='compose-btn-send']"))) except Exception as e: print(style.RED + f"\nFailed to send message to: {number}, retry ({i+1}/3)") print("Make sure your phone and computer is connected to the internet.")