Company
Date Published
Author
Simon Stewart
Word count
1169
Language
English
Hacker News points
None

Summary

New Tricks in Selenium 4`: Selenium 4 introduces several improvements and capabilities, including relative locators that allow users to describe elements on a page in human language, enabling more efficient and fluent test automation. The new feature also allows users to add custom locators, both client-side and server-side, making it easier to work with various UI frameworks. Additionally, Selenium 4 provides mechanisms for authenticating to websites, intercepting network traffic, and utilizing the Chrome Debugging Protocol, which enables faster and more stable testing. The framework's support for multiple versions of the CDP allows users to test with different browser versions without rewriting tests.