Company
Date Published
Author
Titus Fortner
Word count
412
Language
English
Hacker News points
None

Summary

Selenium 4 introduces a new command to create either a new window or a new tab in automation scripts, allowing users to switch focus to the newly created element without relying on keyboard shortcuts that may vary between browsers. The `newWindow` and `newTab` commands can be used with different programming languages such as Java, Python, C#, Ruby, and JavaScript, providing a more reliable way to navigate through multiple windows or tabs in Selenium tests.