O'Reilly logo

Using Node.js for UI Testing by Pedro Teixeira

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 6. Testing Interactions

So far we have tested the filling of text fields on a form, but there are other more complex input fields that you can instruct a Zombie browser to fill.

For instance, you may want to select a radio button element, or choose one item from a drop-down list box, or you may want to select a particular date from a date input field.

When interacting with form fields and other elements, your application may manipulate the document—to show or hide some elements, for instance. By the end of this chapter you will know how to use Zombie.js to validate the effects of manipulating the document with JavaScript.

The topics covered in this chapter are:

  • How to trigger changes in other form objects
  • How to test DOM manipulations

Acting ...

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