public void _05_MoveToParentFrame() { test = extent .StartTest("MoveToParentFrame", "Moves to frame " + "'main_page'") .AssignCategory("Frames"); try { FrameHandler.MoveToParentFrame(_driver); Assert.True(FrameHandler.GetCurrentFrameName(_driver).Equals("main_page"), "Frame name was not 'main_page' "); test.Log(LogStatus.Pass, "The current frame is " + "'main_page'"); } catch (Exception ex) { test.Log(LogStatus.Fail, "<pre>" + ex.StackTrace + "</pre>"); throw; } }