I want to read and print all the unread messages from the whatsapp web in real-time(as they come ,it should be printed on the console).There should be 1-1 mapping of messages printed with the contact name.
I was trying to make the list of all the contact and then going one by one into the contacts by using findElements() but the problem is that the list is not being made in the order as we see on the whatsapp web UI.(the contact list is in some random order).
List name=driver.findElements(By.className(""); for(i=0;i
This is not printing the list in the order we see on the whatsapp UI). In the html also the elements are not in the same order.How does whatsapp link the contact names even if they are not in order?
Aucun commentaire:
Enregistrer un commentaire