Case Study: Automated Testing ‘Login with Remember Me’ in Selenium WebDriver

a step by step guide to developing this slightly tricky automated End-to-End test for this common web app feature.

Zhimin Zhan
5 min readFeb 18, 2022


A repost of my daughter’s article with permission. I added it here for the convenience of my blog subscribers.

This article is included in my “How to in Selenium WebDriver” series.

“Login with Remember Me” functionality is common, nearly on all web apps, but it is not as easy as you would expect for automated testing this feature properly.

Remember Me’ ensures that you remain signed in (with the help of cookies) the next time you visit the site, even after the browser is completely closed. This tutorial will show you how to set Chrome’s options to use the same browser profile and successfully test ‘Remember Me’ in Selenium WebDriver.

1. Test Design

  1. Login with the Remember Me checkbox checked
  2. Copied the URL of logged in page, e.g. Dashboard
  3. Close the browser



Zhimin Zhan

Test automation & CT coach, author, speaker and award-winning software developer. Help teams succeed with Agile/DevOps by implementing real Continuous Testing.