aahnik / wappdriver

Wondering how to send WhatsApp messages using Python using only 3 lines of code? You have come to the right place!
https://aahnik.github.io/wappdriver/
MIT License
46 stars 3 forks source link

element click intercepted #11

Closed aahnik closed 4 years ago

aahnik commented 4 years ago

: Element <span dir="auto" title="aahnik" class="_3ko75 _5h6Y_ _3Whw5">...</span> is not clickable at point (103, 257). Other element would receive the click: <div class="pr5ny">...</div>

from wappdriver import WappDriver
bot = WappDriver()
bot.send_message(to='aahnik',msg='working')
bot.send_message(to='Sir',msg='this is testing,plz dont reply')# not in contact, should catch exception and print it
bot.send_message(to='aahnik',msg='working')

when executing this, the message for Sir does not get send to prev person aahnik. that's good,

but as aahnik is already selected the last line is not being executed

Yo!! sucessfully loaded WhatsApp Web

 Sir not loaded, MAY BE NOT IN YOUR CONTACTS , 
                If you are sure Sir is in your contacts, Try checking internet connection

               OR  May be some other problem ...   

Message: 

 For help visit aahnik.github.io/wappdriver 

 aahnik not loaded, MAY BE NOT IN YOUR CONTACTS , 
                If you are sure aahnik is in your contacts, Try checking internet connection

               OR  May be some other problem ...   

Message: element click intercepted: Element <span dir="auto" title="aahnik" class="_3ko75 _5h6Y_ _3Whw5">...</span> is not clickable at point (103, 257). Other element would receive the click: <div class="pr5ny">...</div>
  (Session info: chrome=85.0.4183.83)

 For help visit aahnik.github.io/wappdriver 
aahnik commented 4 years ago

Got an Idea. Let the bot remember the last person loaded. If the current person to load is the same as the last person, then don't click