标签:with set get fir ring next bsp handles drive
String firstWindow = driver.getWindowHandle();
Set<String> allWindows = driver.getWindowHandles();
Iterator<String> windowsIterator = allWindows.iterator()
While(windowsIterator.hasNext()){
String windowHandle = windowsIterator.next().toString();
if(!windowHandle.equals(firstWindow)){
driver.swithTo().window(windowHandle);
break;
}
}
WebDriver switching to new window
标签:with set get fir ring next bsp handles drive
原文地址:https://www.cnblogs.com/amy2012/p/11624533.html