How to deal with Dynamically changing "class names" or "ids" in HTML source code while automating using Selenium WebDriver

[![Like This](https://i.stack.imgur.com/2n9eQ.png)](https://i.stack.imgur.com/2n9eQ.png)

**Example Application : GMAIL**