diff --git a/automator.py b/automator.py index ac2df6a..cc7ad38 100644 --- a/automator.py +++ b/automator.py @@ -75,7 +75,8 @@ class style(): if not sent: driver.get(url) try: - click_btn = WebDriverWait(driver, delay).until(EC.element_to_be_clickable((By.XPATH, "//button[@data-testid='compose-btn-send']"))) + click_btn = WebDriverWait(driver, delay).until(EC.element_to_be_clickable((By.XPATH, + "//button[@aria-label='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.")