public void _03_GetDefaultContext() { test = extent .StartTest("GetDefaultContent", "Moves to Default Content") .AssignCategory("Frames"); try { FrameHandler.MoveToDefaultContext(_driver); Assert.Null(FrameHandler.GetCurrentFrameName(_driver), "Failed to move to default Content "); test.Log(LogStatus.Pass, "Moved properly to default content"); } catch (Exception ex) { test.Log(LogStatus.Fail, "<pre>" + ex.StackTrace + "</pre>"); throw; } }