Skip to content

Commit

Permalink
fixes anirudhbagri#18: Message showing up in the text box but doesn't…
Browse files Browse the repository at this point in the history
… get sent
  • Loading branch information
iamtalhaasghar committed Jun 13, 2024
1 parent 202daeb commit bbe5e40
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion automator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand Down

0 comments on commit bbe5e40

Please sign in to comment.