Following are the ways with which you can handle iFrames:
Now if you want to switch back to the parent frame, you can use the default method as - Switch to Default Content method. This allows you to navigate back to parent method and can be used as - driver.switchTo().defaultContent();
Need reliable QA resources to ramp up your existing processes, contact QASource's testing experts today.