Using the webdriver I have switched the focus to a popup window
driver.switchTo().window("SystemAdmin");
However I wish to switch back to the initial window which does not have a name. I have tried the following code but it doesn’t work
driver.switchTo().defaultContent();
1 Answer