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.
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 similarwait.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