With Selenium 3.0 moving to Java 8, we can use some of the new features of Java 8, such as Stream API and Lambda or Anonymous functions to create scripts in a functional programming style. We do so by reducing the number of lines of code as well as reaping the benefits of the newer features of the language. In this chapter, we will cover these topics:
- Introducing Java 8 Stream API
- Using Stream API to collect and filter data
- Using Stream API with Selenium WebDriver