Selenium Java - Handling Windows, Frames, and Alerts
What is wrong with this code snippet?
String newTab = driver.switchTo().newWindow(WindowType.TAB);
newTab.get("https://example.com");