I have a selenium code below which switch window to another window. How do I do the same thing with HtmlUnit not HtmlUnitDriver.
Set windows = driver.getWindowHandles(); List windowsH = new ArrayList<>(windows); driver.switchTo().window(windowsH.get(1));
Can someone give me a sample code. Thank you.