How to check message dispatch status of chat application

I was testing a chat application with Appium. For each message, there is three status

  1. Server sent
  2. Received
  3. Read

How can I check the status in Appium? For each message, the resource id is the same
id/messageStatus. and I need to take screenshots from the receiver side when a new message arrives, How can I add an event listener type thing that will trigger a screenshot when a new message arrives

Server Sent
enter image description here

better ask dev to set different image label/value/id/… for each state.

1 Like