How to capture object of snackbar message through record and replay method?

When I am Clicked On Login Button Without Passing Username and password then show snack-bar Message(Username Can not be blank).I am trying to capture object of snack-bar message but never successes.Anyone know How to capture and get this Snack-bar Message? and Compare With another Message.

Screenshot_20181023-165846.jpg

I want to know too.

I am facing the same problem any workaround for this?

I also want to know about this