Skip to content

Commit

Permalink
Merge pull request github#22 from tm420/changexpath
Browse files Browse the repository at this point in the history
changed attribute for xpath
  • Loading branch information
anirudhbagri authored Aug 21, 2022
2 parents 95fab80 + 4b5796d commit b2b60a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion automator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand Down

0 comments on commit b2b60a6

Please sign in to comment.