Chapter 8. Automating acceptance criteria for the UI layer

This chapter covers

  • Why and when you should write automated UI tests
  • Using Selenium WebDriver for web tests
  • Finding and interacting with page elements in your tests
  • Using the Page Objects pattern to make your tests cleaner
  • Libraries that extend Selenium WebDriver

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 ...

Get BDD in Action 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.