O'Reilly logo

Selenium 2 Testing Tools Beginner's Guide by David Burns

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.

Let's start using this.

Local storage

In this section, we are going to have a look at working through local storage to make sure that items we expect to be there are 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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required