HtmlPage open1 = (HtmlPage) webClient.getPage("http://www.google.com");
ScriptResult result = open1.executeJavaScript("window.location.assign('https://www.google.com.tr/search?q'));
HtmlPage afterExecution = (HtmlPage) result.getNewPage();
System.out.println(afterExecution); //in window new adres
如何在同一窗口中打开新站点?