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, which will work on all the browsers supported by Selenium WebDriver.

In this chapter, we will focus on the most important features of HTML5, and see how to test them using Selenium WebDriver.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.227.72.15