akhilerm / Infiny

WhatsApp Web Automation using JavaScript
39 stars 20 forks source link

not all contacts are indexed #7

Open yahyaanwar opened 6 years ago

yahyaanwar commented 6 years ago

because web.whatsapp.com update dom every time we scroll. only 15-17 chat lists can be captured by getChatname(). to get all the contact list I have to shrink the zoom from body using,

document.body.style.zoom = '1%'

before_zoomed_out this is the contact list before zooming out

after_zoomed_out and this is the contact list after zooming out

but there is a bit of a problem. its chat view so not too readable. and when I zoomed the dom changed again. hence sometimes I fail to get the contact I mean because it is lost from the dom.

maybe you can get a better solution for this. thanks

akhilerm commented 6 years ago

Is there any possible way so that we can scroll through the contact list and then search. ?

yahyaanwar commented 6 years ago

it seems we can not get all the contact list just by scrolling it down. because the list of contacts whose position above will be updated