you can try using this loop:
for (String winHandle : objDriver.getWindowHandles()) {
objDriver.switchTo().window(Handle);
}
It will switch the control from one driver window to child window
To return back to parent window use:
driver.switchTo().defaultContent();