10 Automating acceptance criteria for the UI layer

This chapter covers

  • Why and when you should write automated UI tests
  • Using tools like Selenium WebDriver in Java to automate web tests
  • Finding and interacting with page elements in your tests
  • Design patterns to write more maintainable web tests

In the previous chapter, you learned how using a layered approach to automated acceptance testing helps make your tests clearer, more robust, and more maintainable. We discussed the three broad layers used in well-designed automated acceptance tests: the Business Rules layer, the Business Flow layer, and the Technical layer. In the following few chapters, we’ll focus on approaches and tools that can be used to implement the Technical layer, starting ...

Get BDD in Action, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.