How to check delivering status (sent, delivered, read) of last Whatsapp message sent

Hi! I have a problem with selectors in Whatsapp web and I cannot solve it. I need your help.

The point is, I have created a xaml that writes a message into web.whatsapp.com, and now I want to wait until I see that the receiver has read it. In order to do so, I need to “get Attribute” of those little check marks on the right bottom corner of LAST MESSAGE. And here it comes the problem. I am able to point this element, however when I run the xaml and it writes down my message, when it comes to wait and examine the state of delivery (sent, delivered or read), my project looks at the previous message box, the one I used to indicate where to look at when I was coding.

I show you the IU Explorer.

You see, “aria-label” is the characteristic I need, however it is imposible to me to get rid of idx. In this case it equals 9 because there were 9 boxes of just “sent” messages when I created the activity, however, right now there are 10 (9 + this last one I wrote down in my last testing of the xaml). If I put an asterisk here, instead of 9, the problem is that Uipath does not know which box to check the delivery status, and “aria-label” dissapears and it is impossible for Uipath to get this value. However, if I keep “idx=9”, Uipath will look to this specific “9th” box, not the one I am really interested in (which is last one in the queue).

Anybody could help me?

Thank you very much for your patience…

1 Like

Hey @ccrespo9669

Try using is leaf attribute once, which may get rid of idx.

Or you can just use below alternatives,

1. Data Scraping - Scrape all sent messages status and pick the last one to check status

2. Find Children - From the messages container fetch all the sent messages child and pick the last one to check status

The above may be a bit cleaner approach if selectors are not gonna help.

Hope this helps

Thanks
#nK

Thank you, thank you, thank you very much Nithinkrishna, the isleaf option has worked perfectly. Thanks a lot,

César

1 Like

Cool @ccrespo9669 :slight_smile: :+1:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.