Summary

In this short chapter, we learned how to use Selenium 8 Stream API and Lambda functions to simplify the Selenium WebDriver code. This helps you to write code in a functional programming style, which is more fluent and readable. Streams are useful for working with the list of WebElements. We can collect and filter data with a stream easily.

In the next chapter, we will explore the features of WebDriver for taking screenshots, handling Windows and Frames, synchronization, and managing cookies.

Get Selenium WebDriver 3 Practical Guide - 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.