code: private void navigateTo(String pageKey, String urlToOpen, String windowHandle) {
          Context.addWindow(pageKey, windowHandle);
          Context.setMainWindow(pageKey);
          Context.getDriver().navigate().to(urlToOpen);
      }
docs: navigateTo change url on the same window.