O'Reilly logo

Selenium WebDriver Recipes in C#, Second Edition by Zhimin Zhan

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

CHAPTER 18

image

HTML5 and JavaScript

Web technologies are evolving. HTML5 includes many new features for more dynamic web applications and interfaces. Furthermore, with widespread use of JavaScript (thanks to popular JavaScript libraries such as JQuery), web sites nowadays are much more dynamic. In this chapter, I show some Selenium examples to test HTML5 elements and interactive operations.

Please note that some tests only work on certain browsers (Chrome is your best bet), as some HTML5 features are not yet fully supported in some browsers.

HTML5 email type field

Let’s start with a simple one. An email type field, like the one shown in Figure 18-1 ...

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