Summary
We learned a lot in this chapter about using the HTML5 API that comes with Selenium WebDriver. These are helper methods that make our lives significantly easier when working against application cache or against web storage mechanisms.
Specifically, we covered:
The application cache API: We had a look at how we can access the browsers' application cache to see if it is downloading items into the cache or if the current app is uncached.
Browser connections: Web applications, with the help of HTML5, are getting the ability to work when they are offline. We have seen how, with the help of the application cache, we can load pages from the cache. We can also see whether the browser is currently online or offline, and on the mobile devices we can turn them to airplane mode.
WebStorage: In this section, we had a look at how we can access the
WebStorage
object that has been added to the HTML5 specification. Specifically, we had a look atlocalStorage
andsessionStorage
. Selenium WebDriver...