Home / Companies / Sauce Labs / Blog / Post Details
Content Deep Dive

Selenium 4 - New Windows and Tab Utilities

Blog post from Sauce Labs

Post Details
Company
Date Published
Author
Titus Fortner
Word Count
412
Language
English
Hacker News Points
-
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.