O'Reilly logo

Application Testing with Capybara by Matthew Robbins

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

Flash and HTML5 – black box elements

Just as the use of asynchronous JavaScript and Ajax has pushed the boundaries of web applications, there are other components outside of static markup that make testing modern web applications challenging.

Examples of such components include:

  • Flash applications, such as games, video players, and so on
  • HTML5 canvas tag used for drawing using a JavaScript API
  • HTML5 video / audio tag

All these components have something in common, that is, they have functionality that operates to some extent outside of the context of the DOM. We cannot inspect their internals using the techniques we have discussed so far, because all these techniques are based on inspecting the DOM for specific elements, their attributes, and text values. ...

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