0

I want to test some pages which have checkboxes in a form. Is it a good idea to include a test case which simply checks if all checkboxes are unchecked upon page reload ?

In other words, I am asking if its possible that checked checkboxes do not become unchecked even after reloading the page or by going to another page in that website & then returning to the page ?

Is this always caused by the browser and maybe poor programming/design ?

What i tried: Why does the checkbox stay checked when reloading the page?

MasterJoe
  • 2,103
  • 5
  • 32
  • 58

1 Answers1

0

Its all dependent on browser caching. Each reload gives you that static page but due to page cache the checkbox remains checked. If you want them unchecked on each page reload, then either perform hard reloading Ctrl + Shift + R or set a control header : Cache-Control: no-store

Harrisss
  • 363
  • 1
  • 11