Working with WebStorage

Some of the other technologies that are being developed for HTML5 are related to WebStorage. There are three main WebStorage technologies:

  • Local storage
  • Session storage
  • WebSQL

In this section of the chapter, we will only be working with the first two since WebSQL is not being implemented by all of the browser vendors. These technologies allow us to save to the users' hard disk and then retrieve what we stored.

Local storage

In this section, we will have a look at local storage to make sure that items we expect to be there are really there. This is analogous to an integration test that accesses a database to check whether something has been sorted. LocalStorage allows data to be stored and the data is persisted between sessions ...

Get Learning Selenium Testing Tools - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.