docs: public void selectBlankWindow(WebDriver driver) {
      String current = driver.getWindowHandle();
      // Find the first window without a "name" attribute
      List<String> handles = new ArrayList<>(driver.getWindowHandles());
      for (String handle : handles) {
        // the original window will never be a _blank window, so don't even look at it
        // this is also important to skip, because the original/root window won't have
        // a name either, so if we didn't know better we might think it's a _blank popup!
        if (handle.equals(originalWindowHandle)) {
          continue;
        }
        driver.switchTo().window(handle);
        String value = (String)
            ((JavascriptExecutor) driver).executeScript("return window.name;");
        if (value == null || "".equals(value)) {
          // We found it!
          return;
        }
      }
      // We couldn't find it
      driver.switchTo().window(current);
      throw new SeleniumException("Unable to select window _blank");
    }