Chapter 10. Testing HTML5 Web Applications

In this chapter, we will cover:

  • Automating the HTML5 video player
  • Automating interaction on the HTML5 canvas element
  • Web storage – testing local storage
  • Web storage – testing session storage
  • Cleaning local and session storage

Introduction

As HTML5 is gaining popularity, major browsers are now equipped to support HTML5, extending the scope of HTML combined with JavaScript and CSS3 into powerful, rich internet applications. There are many applications being developed that use new HTML5 elements such as canvas and video, as well as features such as web storage.

Selenium WebDriver supports testing HTML5 web applications on certain browsers out of the box. However, we can also use JavaScript to test these features, ...

Get Selenium Testing Tools Cookbook - Second 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.