public void selectParentFrame ( ) { String action = "Switching to parent frame" ; String expected = "Parent frame is selected" ; try { driver . switchTo ( ) . parentFrame ( ) ; } catch ( Exception e ) { reporter . fail ( action , expected , "Parent frame was not selected. " + e . getMessage ( ) ) ; log . warn ( e ) ; return ; } reporter . pass ( action , expected , expected ) ; }
Select the parent frame . Used for returning to the next frame up after selecting a frame . If there are nested frames the main content won t be selected however the next frame in the parent child relationship will be