O'Reilly logo

BDD in Action: Behavior-Driven Development for the whole software lifecycle by John Ferguson Smart

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

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