Set<String> handle = driver.getWindowHandles();
Iterator<String> it = handle.iterator();
String parentId = (it.next());
System.out.println("parenWidowId" + parentId);
String childId = (it.next());
System.out.println("childWindowId" + childId);
driver.switchTo().window(childId);