shauryauppal / PyWhatsapp

Python Automation using selenium & Scheduling of messages and media
https://www.linkedin.com/in/shaurya-uppal
Apache License 2.0
455 stars 159 forks source link

add wait.until in the send_unsaved_contact #30

Closed AksAman closed 4 years ago

AksAman commented 5 years ago

The send_message() function works just fine, but when i try to send one to unsaved contact, sometime it fails if the xpath is not located (incase the contact is not opened by that time). I am trying to add similar wait.untill... in the unsaved method. But, the xpath is not locating it.

x_arg = '//span[contains(@title,' + target + ')]' here i am using target as the mobile no. formatted as shown in whatsapp.

Please help

shauryauppal commented 4 years ago

image

shauryauppal commented 4 years ago

Whatsapp has changed it's UI and Options will fix it today.

shauryauppal commented 4 years ago

Issue Fixed