The document summarizes the new features of Selenium WebDriver 4, which was officially released in October 2021. Some key points:
- Selenium 4 focuses on standardizing with the W3C webdriver specification. It allows WebDriver to communicate directly with browsers without encoding/decoding of the JSON wire protocol.
- DesiredCapabilities have been replaced by Options classes to configure browser settings. The JSON wire protocol is deprecated.
- New features include relative locators, page printing tests, improved window handling, authentication support, and shadow DOM automation.
- The architecture has been optimized for observability, scalability using Docker/Kubernetes, and integration with tools like Chrome DevTools.
- While major changes are under the