Introduction
As HTML5 is gaining popularity, major browsers are now equipped to support HTML5, extending the scope of the HTML combined with JavaScript and CSS3 into powerful, rich Internet applications. There are many applications being developed using new HTML5 elements such as canvas, video, and so on, and features such as web storage giving users a rich Internet experience. For many web developers adopting these standards, it is essential that we test these features automatically.
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.