2013/04/15

Testing tip: Google Chrome clearing cache/cookies with a new Chrome User

While testing Web Applications we can frequently face problems related to caching or some old cookies.

The easiest way to clean them in Google Chrome is to use Ctrl+Alt+Delete key combination (or menu Tools -> Clear browsing data...): it will clean all the cookies entirely. And it works in most cases.

But what if you don't want to lose all of your cookies (especially if you use Chrome for your personal needs)? You have two options here:
  1. Use incognito mode. 
    • For this press Ctrl+Shift+N key combination. In this mode you won't have any cache or cookies in place and they won't be saved at the end of session as well.
    • For mode details you can refer official article - Incognito mode.
  2. Create new Google Chrome user and clear everything (or just cookies) for him. 
    • In this way cookies won't be cleared at the end of session, so you may continue your work the next day.
    • For details on creating new user you can refer official article - Manage multiple users on Chrome.
    • User needs to be created only one time, later you can just switch to it and clear.

Personally I prefer 2nd option with new user.

Good luck guys, hopefully this simple tip will be helpful to someone.